Checks if a value is a RegExp.
value
const result = isRegExp(/.+/);console.log(result); // true
const result = isRegExp(".+");console.log(result); // false
true if value is a RegExp, otherwise false
true
false
the value to check
Generated using TypeDoc
Checks if a
valueis a RegExp.Example
Example
Returns
trueifvalueis a RegExp, otherwisefalse