UNPKG

452 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.isNull = void 0;
4/**
5 * @name isNull
6 * @summary Tests for a `null` values.
7 * @description
8 * Checks to see if the input value is `null`.
9 * @example
10 * <BR>
11 *
12 * ```javascript
13 * import { isNull } from '@polkadot/util';
14 *
15 * console.log('isNull', isNull(null)); // => true
16 * ```
17 */
18function isNull(value) {
19 return value === null;
20}
21exports.isNull = isNull;