【文件属性】:
文件名称:boolean-object:将对象中的属性值转换为布尔值
文件大小:4KB
文件格式:ZIP
更新时间:2021-06-19 16:04:38
JavaScript
布尔对象
将对象中的属性值转换为布尔值。
安装
npm install boolean-object
用法
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'
// }
【文件预览】:
boolean-object-master
----.gitignore(33B)
----README.md(898B)
----test()
--------index.js(421B)
----LICENSE(1KB)
----.gitattributes(12B)
----package.json(686B)
----index.js(445B)
----.npmignore(73B)
----.travis.yml(72B)
----.editorconfig(179B)