@f/string-to-boolean
v1.0.1
Published
Convert string to boolean.
Downloads
5
Readme
string-to-boolean
Convert string to boolean.
Installation
$ npm install @f/string-to-boolean
Usage
var stringToBoolean = require('@f/string-to-boolean')
stringToBoolean('true') // => true
stringToBoolean('a') // throws TypeError
API
stringToBoolean(val)
val
- val to convert to boolean
Returns: boolean or throw TypeError
License
MIT