Files
common/docs/util/modules/_is_boolean_.md
T
2019-02-25 16:09:47 +00:00

578 B

Functions

isBoolean

▸ isBoolean(value: any): boolean

Defined in is/boolean.ts:19

name: isBoolean

summary: Tests for a boolean value.

description: Checks to see if the input value is a JavaScript boolean.

example:

import { isBoolean } from '@polkadot/util';

isBoolean(false); // => true

Parameters:

Name Type
value any

Returns: boolean