Files
common/docs/util/modules/_is_boolean_.md
T
2019-02-21 13:33:24 +00:00

37 lines
578 B
Markdown

# Functions
<a id="isboolean"></a>
## isBoolean
▸ **isBoolean**(value: *`any`*): `boolean`
*Defined in [is/boolean.ts:19](https://github.com/polkadot-js/common/blob/c5e0fac/packages/util/src/is/boolean.ts#L19)*
*__name__*: isBoolean
*__summary__*: Tests for a boolean value.
*__description__*: Checks to see if the input value is a JavaScript boolean.
*__example__*:
```javascript
import { isBoolean } from '@polkadot/util';
isBoolean(false); // => true
```
**Parameters:**
| Name | Type |
| ------ | ------ |
| value | `any` |
**Returns:** `boolean`
___