Urara-Blog/node_modules/.pnpm-store/v3/files/e2/1ecf0683cfedff2ce145d617a339c7dfaf7739f4f80d326a125a811f45330c4439a581bb5bf8f537eb42e4b33274fa0e884eb47164c3c399ff201637e8f775
2022-08-14 01:14:53 +08:00

27 lines
646 B
Text

var baseIsRegExp = require('./_baseIsRegExp'),
baseUnary = require('./_baseUnary'),
nodeUtil = require('./_nodeUtil');
/* Node.js helper references. */
var nodeIsRegExp = nodeUtil && nodeUtil.isRegExp;
/**
* Checks if `value` is classified as a `RegExp` object.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
* @example
*
* _.isRegExp(/abc/);
* // => true
*
* _.isRegExp('/abc/');
* // => false
*/
var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
module.exports = isRegExp;