indepth.js:使用键和索引数组获取和设置嵌套值

时间:2021-06-24 17:22:33
【文件属性】:
文件名称:indepth.js:使用键和索引数组获取和设置嵌套值
文件大小:6KB
文件格式:ZIP
更新时间:2021-06-24 17:22:33
JavaScript 深入 使用键和索引数组获取、设置和删除嵌套值 var indepth = require ( 'indepth' ) ; indepth . get ( object , [ 'string key' , 1 , 'another' , 3 ] ) ; // throws if any get operation fails indepth . get ( object , [ 'string key' , 1 , 'another' , 3 ] , 'failed' ) ; // returns 'failed' if any get operation fails indepth . set ( object , [ 'string key' , 1 ] , 'new value' ) ; // throws if any set operation fails indepth .
【文件预览】:
indepth.js-master
----.travis.yml(70B)
----index.js(3KB)
----.jscsrc(25B)
----package.json(1KB)
----test()
--------setWithParents.test.js(583B)
--------insert.test.js(1KB)
--------set.test.js(1KB)
--------get.test.js(863B)
--------delete.test.js(1KB)
----.npmignore(102B)
----.istanbul.yml(93B)
----.gitignore(30B)
----README.md(1KB)
----.jshintrc(315B)
----.editorconfig(208B)

网友评论