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