UNPKG

@mapcss/preset-svg

Version:
19 lines (18 loc) 353 B
/** * Whatever argument is type of `undefined` or not * * @param val - Input any value * @returns The result of `typeof val === 'undefined'` * * @example * ```ts * isUndefined(undefined) // true * isUndefined(null) // false * ``` * * @beta */ function isUndefined(value) { return typeof value === "undefined"; } export { isUndefined };