UNPKG

375 BJavaScriptView Raw
1/**
2 * @name isUndefined
3 * @summary Tests for a `undefined` values.
4 * @description
5 * Checks to see if the input value is `undefined`.
6 * @example
7 * <BR>
8 *
9 * ```javascript
10 * import { isUndefined } from '@polkadot/util';
11 *
12 * console.log('isUndefined', isUndefined(void(0))); // => true
13 * ```
14 */
15export function isUndefined(value) {
16 return value === undefined;
17}