Package: effect
Module: Filter
A predefined filter that only passes through Date objects.
When to use
Use when you need to narrow unknown input to JavaScript Date instances with
a reusable Filter.
Details
Implemented with fromPredicate(Predicate.isDate), so passing values return
Result.succeed(input) and failing values return Result.fail(input).
Gotchas
The check uses instanceof Date, so invalid Date objects still pass; the
filter does not validate the timestamp.
See
Predicate.isDate for the underlying guardinstanceOf for constructor-based filteringfromPredicate for custom date checksSignature
declare const date: Filter<unknown, Date, unknown>
Since v4.0.0