CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
isRegExp.d.ts17 linesDownload Raw Back to predicate
1/**2 * Checks if `value` is a RegExp.3 *4 * @param {unknown} value The value to check.5 * @returns {value is RegExp} Returns `true` if `value` is a RegExp, `false` otherwise.6 *7 * @example8 * const value1 = /abc/;9 * const value2 = '/abc/';10 *11 * console.log(isRegExp(value1)); // true12 * console.log(isRegExp(value2)); // false13 */14declare function isRegExp(value: unknown): value is RegExp;15 16export { isRegExp };17 
basant307/AI_Governance_Project · CoolFace