0.1.0 • Published 5 years ago

@queso/is-boolean v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

@queso/is-boolean

npm license Travis Build Status codecov Try @queso/is-boolean on RunKit

Part of a library of zero-dependency npm modules that do just one thing.

npm

min + gzip | 85 bytes

source

Checks if the primitive value of value is a boolean.

Usage

import isBoolean from '@queso/is-boolean'

isBoolean(false)
// => true

Parameters

NameTypeDescription
valueanyThe value to check.

Returns

true if the primitive value of value is a boolean, else false.

Return type

value is boolean