instanceof RegExp alias.
instanceof RegExp
isRegExp(new RegExp("-")); // trueisRegExp(/-/); // trueisRegExp("Vangware"); // false
true if the given value is an instance of RegExp, false otherwise.
true
RegExp
false
instanceof RegExp
alias.Example
Returns
true
if the given value is an instance ofRegExp
,false
otherwise.