@lavadrop/is-boolean
v0.3.0
Published
Checks if the primitive value of value is a boolean.
Downloads
6
Maintainers
Readme
@lavadrop/is-boolean
Part of a library of zero-dependency npm modules that do just one thing.
- 100% TypeScript support.
- It's not a party without
Lavadrop
!
min + gzip | 85 bytes
Checks if the primitive value of value
is a boolean.
Usage
import isBoolean from '@lavadrop/is-boolean'
isBoolean(false)
// => true
Parameters
| Name | Type | Description |
| :------ | :---- | :------------------ |
| value
| any
| The value to check. |
Returns
true
if the primitive value of value
is a boolean, else false
.
Return type
value is boolean