Appearance
Test if a value is a boolean.
import { isBoolean } from '@studiometa/js-toolkit/utils'; isBoolean(true); // true isBoolean('foo'); // false
value
any
Returns true if the given value is a boolean, false otherwise.
true
false