【文件属性】:
文件名称:keys-tree:递归地构建对象键树。 用于创建列表或调试
文件大小:5KB
文件格式:ZIP
更新时间:2021-06-17 13:58:15
JavaScript
密钥树
递归地构建对象键树。 用于创建列表或调试。
使用安装
npm i keys-tree --save
用法
var keys = require ( 'keys-tree' ) ;
keys ( { a : 'b' , c : 'd' } ) ;
//=> { keys: [ 'a', 'c' ] }
keys ( { a : 'b' , c : { d : 'e' , f : 'g' } } ) ;
//=> { keys: [ 'a', 'c' ], c: { keys: [ 'd', 'f' ] } }
keys ( { a : 'b' , c : { d : 'e' , f : 'g' , h : { i : 'j' , k : 'l' , m : 'n' } } } ) ;
// results in:
// { keys: [ 'a', 'c' ],
// c:
【文件预览】:
keys-tree-master
----.travis.yml(89B)
----index.js(574B)
----test.js(731B)
----package.json(859B)
----LICENSE(1KB)
----.gitignore(120B)
----.verb.md(823B)
----README.md(2KB)
----.jshintrc(281B)
----.editorconfig(424B)
----.gitattributes(127B)