Checks if value is classified as a RegExp object.
value
RegExp
The value to check.
Returns true if value is a regexp, else false.
true
false
5.5.0
isRegExp(/abc/)// => trueisRegExp('/abc/')// => false Copy
isRegExp(/abc/)// => trueisRegExp('/abc/')// => false
Checks if
value
is classified as aRegExp
object.