mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-22 02:07:56 +00:00
18 lines
374 B
JavaScript
18 lines
374 B
JavaScript
/**
|
|
* @name isUndefined
|
|
* @summary Tests for a `undefined` values.
|
|
* @description
|
|
* Checks to see if the input value is `undefined`.
|
|
* @example
|
|
* <BR>
|
|
*
|
|
* ```javascript
|
|
* import { isUndefined } from '@pezkuwi/util';
|
|
*
|
|
* console.log('isUndefined', isUndefined(void(0))); // => true
|
|
* ```
|
|
*/
|
|
export function isUndefined(value) {
|
|
return value === undefined;
|
|
}
|