@lou.codes/predicates
Version:
🧐 Predicate util functions
14 lines (13 loc) • 344 B
TypeScript
/**
* `instanceof RegExp` alias.
*
* @category Objects
* @example
* ```typescript
* isRegExp(new RegExp("-")); // true
* isRegExp(/-/); // true
* isRegExp("Lou"); // false
* ```
* @returns `true` if the given value is an instance of `RegExp`, `false` otherwise.
*/
export declare const isRegExp: (input: unknown) => input is RegExp;