hd-utils
Version:
A handy utils for modern JS developers
9 lines (8 loc) • 330 B
TypeScript
/**
* @description If the value is undefined, return true, otherwise return false.
* @example isUndefined("string") // false
* @example isUndefined() // true
* @param {unknown} val - unknown - The value to check if it's undefined.
*/
declare const isUndefined: (val: unknown) => val is undefined;
export default isUndefined;