isMatching ts-pattern
A predicate form of match — returns true/false instead of a value, and narrows types in the truthy branch.
Usage
isMatching(pattern, value)
Use when you want pattern-based narrowing in an if or guard, not a multi-arm dispatch.
isMatching(pattern) — partial application
Called with one argument, returns a reusable guard function. Composes well with filter:
See also
match— multi-arm dispatch formP— pattern primitives- ts-pattern README
Source: ts-pattern
Re-exported unchanged from ts-pattern at the pinned version.