CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
isUndefined.d.mts24 linesDownload Raw Back to predicate
1/**2 * Checks if the given value is undefined.3 *4 * This function tests whether the provided value is strictly equal to `undefined`.5 * It returns `true` if the value is `undefined`, and `false` otherwise.6 *7 * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `undefined`.8 *9 * @param {unknown} x - The value to test if it is undefined.10 * @returns {x is undefined} true if the value is undefined, false otherwise.11 *12 * @example13 * const value1 = undefined;14 * const value2 = null;15 * const value3 = 42;16 *17 * console.log(isUndefined(value1)); // true18 * console.log(isUndefined(value2)); // false19 * console.log(isUndefined(value3)); // false20 */21declare function isUndefined(x: any): x is undefined;22 23export { isUndefined };24 
basant307/AI_Governance_Project · CoolFace