MCPcopy
hub / github.com/tdewolff/minify / baseIsRegExp

Function baseIsRegExp

_benchmarks/sample_victory.js:13862–13864  ·  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

13860 * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
13861 */
13862function baseIsRegExp(value) {
13863 return isObjectLike(value) && baseGetTag(value) == regexpTag;
13864}
13865
13866module.exports = baseIsRegExp;
13867

Callers

nothing calls this directly

Calls 2

baseGetTagFunction · 0.85
isObjectLikeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…