UNPKG

is-what

Version:

JS type check (TypeScript supported) functions like `isPlainObject() isArray()` etc. A simple & small integration.

3 lines (2 loc) 139 B
/** Returns whether the payload is a regular expression (RegExp) */ export declare function isRegExp(payload: unknown): payload is RegExp;