isRegExp

Lang
since 0.1.0

Arguments

  • * The value to check.

Returns

boolean `true` if `value` is a regexp, else `false`.

Checks if value is classified as a RegExp object.

Example of Lodash _.isRegExp

_.isRegExp(/abc/);
// => true

_.isRegExp('/abc/');
// => false