1 contributor
Like
Install is-boolean as a package?
Copied
npm i @bit/amit.utils.string.is-boolean
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example modifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
No preview available
chevron_left
chevron_right
string/isBoolean (
name:
) : string
boolean
Validate that a strings value is boolean
Example
Argument
name:
string
Returns
boolean
Test Summary
isBoolean should return false if string value is diffrent from ['true’, 'false’, '1’, ‘0’] | Pass |
isBoolean should return true if string value is boolean | Pass |