sort-keys-recursive:递归地对arrayobject的键进行排序

时间:2021-05-12 17:04:42
【文件属性】:
文件名称:sort-keys-recursive:递归地对arrayobject的键进行排序
文件大小:9KB
文件格式:ZIP
更新时间:2021-05-12 17:04:42
JavaScript 递归排序键 递归排序对象的键。 安装 npm install sort-keys-recursive --save 用法 const sortKeysRecursive = require ( 'sort-keys-recursive' ) const object = { c : 0 , a : { c : [ 'c' , 'a' , 'b' ] , a : 0 , b : 0 } , b : 0 } const output = sortKeysRecursive ( object ) console . log ( output ) // { // a: { // a: 0, // b: 0, // c: ['a', 'b', 'c'] // }, // b: 0, // c: 0 // }; 原料药
【文件预览】:
sort-keys-recursive-master
----.travis.yml(697B)
----index.js(1KB)
----package.json(2KB)
----.github()
--------dependabot.yml(257B)
----test()
--------test.js(3KB)
----.npmignore(120B)
----.bumpedrc(683B)
----LICENSE.md(1KB)
----.gitignore(420B)
----CHANGELOG.md(5KB)
----README.md(3KB)
----.editorconfig(364B)
----.gitattributes(12B)

网友评论