boolean-object
v1.0.1
Published
Convert property values in objects to booleans.
Downloads
1
Readme
boolean-object
Convert property values in objects to booleans.
Installation
npm install boolean-object
Usage
var booleanObject = require('boolean-object')
var obj = {
foo: 'true',
bar: 'false',
baz: 1,
qux: 0,
str: 'string'
}
booleanObject(obj)
// {
// foo: true
// bar: false,
// baz: true,
// qux: false,
// str: 'string'
// }