Checks if the given value is a RegExp.
isRegexp(/regexp/gi); // true isRegexp(new RegExp('regexp' ,'gi')); // true isRegexp({}); // false isRegexp('not regexp'); // false
The value to check.
Whether the value is a RegExp.
Generated using TypeDoc
Checks if the given value is a RegExp.
isRegexp(/regexp/gi); // true isRegexp(new RegExp('regexp' ,'gi')); // true isRegexp({}); // false isRegexp('not regexp'); // false