instanceof RegExp alias.
instanceof RegExp
isRegExp(new RegExp("-")); // trueisRegExp(/-/); // trueisRegExp("Vangware"); // false Copy
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