@polkadot/util
Version:
A collection of useful utilities for @polkadot
16 lines (15 loc) • 341 B
TypeScript
/**
* @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
* ```
*/
export declare function isBoolean(value: unknown): value is boolean;