CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
isSet.d.mts21 linesDownload Raw Back to predicate
1/**2 * Checks if a given value is `Set`.3 *4 * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `Set`.5 *6 * @param {unknown} value The value to check if it is a `Set`.7 * @returns {value is Set<any>} Returns `true` if `value` is a `Set`, else `false`.8 *9 * @example10 * const value1 = new Set();11 * const value2 = new Map();12 * const value3 = new WeakSet();13 *14 * console.log(isSet(value1)); // true15 * console.log(isSet(value2)); // false16 * console.log(isSet(value3)); // false17 */18declare function isSet(value: unknown): value is Set<any>;19 20export { isSet };21 
basant307/AI_Governance_Project · CoolFace