@mapcss/preset-svg
Version:
SVG as CSS for MapCSS
19 lines (18 loc) • 353 B
JavaScript
/**
* 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 };