flatten-object-strict:展平嵌套对象。 发生碰撞

时间:2024-05-28 03:11:08
【文件属性】:

文件名称:flatten-object-strict:展平嵌套对象。 发生碰撞

文件大小:6KB

文件格式:ZIP

更新时间:2024-05-28 03:11:08

JavaScript

展平对象限制 展平嵌套对象。 在碰撞时抛出。 安装 $ npm install --save flatten-object-strict 用法 'use strict' ; var flattenObjectStrict = require ( 'flatten-object-strict' ) ; console . log ( flattenObjectStrict ( { foo : { one : 1 , two : 2 } , bar : { three : 3 , four : 4 } } ) ) // { one: 1, two: 2, three: 3, four: 4 } console . log ( flattenObjectStrict ( { foo : { dup1 : 1 } , bar :


【文件预览】:
flatten-object-strict-master
----.eslintrc(264B)
----.gitattributes(12B)
----lib()
--------index.js(1KB)
----.travis.yml(57B)
----gulpfile.js(1KB)
----LICENSE(1KB)
----test()
--------index.js(2KB)
----README.md(2KB)
----.editorconfig(171B)
----.gitignore(22B)
----package.json(996B)

网友评论