MCPcopy Create free account
hub / github.com/RubyLouvre/anu / baseIsRegExp

Function baseIsRegExp

test/babel.js:51519–51521  ·  view source on GitHub ↗

* The base implementation of `_.isRegExp` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.

(value)

Source from the content-addressed store, hash-verified

51517 * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
51518 */
51519 function baseIsRegExp(value) {
51520 return isObjectLike(value) && baseGetTag(value) == regexpTag;
51521 }
51522
51523 module.exports = baseIsRegExp;
51524

Callers

nothing calls this directly

Calls 2

isObjectLikeFunction · 0.70
baseGetTagFunction · 0.70

Tested by

no test coverage detected