UNPKG

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