Package: effect
Module: Predicate
Checks whether a value is a RegExp.
When to use
Use when you need a Predicate runtime guard for regular expressions.
Details
Uses instanceof RegExp.
Example (Guarding RegExp values)
import { Predicate } from "effect"
const data: unknown = /abc/
console.log(Predicate.isRegExp(data))
See
isDateSignature
declare const isRegExp: (input: unknown) => input is RegExp
Since v3.9.0