UNPKG

@polkadot/util

Version:
22 lines (21 loc) 510 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isUndefined = void 0; /** * @name isUndefined * @summary Tests for a `undefined` values. * @description * Checks to see if the input value is `undefined`. * @example * <BR> * * ```javascript * import { isUndefined } from '@polkadot/util'; * * console.log('isUndefined', isUndefined(void(0))); // => true * ``` */ function isUndefined(value) { return value === undefined; } exports.isUndefined = isUndefined;