@polkadot/util
Version:
A collection of useful utilities for @polkadot
22 lines (21 loc) • 477 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.isBoolean = void 0;
/**
* @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';
}
exports.isBoolean = isBoolean;
;