UNPKG

@monstermann/fn

Version:

A utility library for TypeScript.

22 lines 435 B
//#region src/function/isRegExp.d.ts /** * `isRegExp(target)` * * Checks if a value is a RegExp instance. * * ```ts * isRegExp(/hello/); // true * isRegExp("hello"); // false * ``` * * ```ts * pipe(/hello/, isRegExp()); // true * pipe("hello", isRegExp()); // false * ``` */ declare const isRegExp: { (): (target: unknown) => target is RegExp; (target: unknown): target is RegExp; }; //#endregion export { isRegExp };