useful-copy:有用的文案更新

时间:2021-06-13 11:56:00
【文件属性】:
文件名称:useful-copy:有用的文案更新
文件大小:6KB
文件格式:ZIP
更新时间:2021-06-13 11:56:00
JavaScript 有用的副本 有用的深/浅复制/更新 安装 使用安装: $ component install muigui/useful-copy 使用 npm 安装: $ npm install useful-copy 应用程序接口 复制(目标:对象,源:对象[,no_overwrite:布尔]):对象 将属性(可通过Object.keys访问)从source对象复制到target对象并返回target对象。 例子: var copy = require ( 'useful-copy' ) ; var foo = { one : 1 , two : 2 , three : 3 } , bar = copy ( { } , foo ) ; bar // returns => { "one" : 1, "two" : 2, "three" : 3
【文件预览】:
useful-copy-master
----gruntfile.js(1KB)
----index.js(2KB)
----package.json(950B)
----test()
--------index.html(792B)
--------runner.js(109B)
--------copy.test.js(3KB)
----component.json(403B)
----Readme.md(3KB)
----LICENSE(1KB)
----.gitignore(30B)

网友评论