CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
isRegExp.js28 linesDownload Raw Back to lodash
1var baseIsRegExp = require('./_baseIsRegExp'),2    baseUnary = require('./_baseUnary'),3    nodeUtil = require('./_nodeUtil');4 5/* Node.js helper references. */6var nodeIsRegExp = nodeUtil && nodeUtil.isRegExp;7 8/**9 * Checks if `value` is classified as a `RegExp` object.10 *11 * @static12 * @memberOf _13 * @since 0.1.014 * @category Lang15 * @param {*} value The value to check.16 * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.17 * @example18 *19 * _.isRegExp(/abc/);20 * // => true21 *22 * _.isRegExp('/abc/');23 * // => false24 */25var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;26 27module.exports = isRegExp;28 
basant307/AI_Governance_Project · CoolFace