mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-22 06:47:57 +00:00
21 lines
479 B
JavaScript
21 lines
479 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.isUndefined = isUndefined;
|
|
/**
|
|
* @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
|
|
* ```
|
|
*/
|
|
function isUndefined(value) {
|
|
return value === undefined;
|
|
}
|