UNPKG

@polkadot/util

Version:
21 lines (20 loc) 449 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isBoolean = isBoolean; /** * @name isBoolean * @summary Tests for a boolean value. * @description * Checks to see if the input value is a JavaScript boolean. * @example * <BR> * * ```javascript * import { isBoolean } from '@polkadot/util'; * * isBoolean(false); // => true * ``` */ function isBoolean(value) { return typeof value === 'boolean'; }