copy-object-helper

1.0.3 • Public • Published

copy-object-helper

Deep copy and deep merge functions, skips all non enumerable params.

Usage

var coh = require('copy-object-helper')
 
// deep copy
let obj1 = coh.copyObject({a: {b: [{c: 1, d: 2}]}})
 
// deep merge (with rest parameters)
let obj2 = coh.mergeObjects(obj1, obj2, obj3...)

Package Sidebar

Install

npm i copy-object-helper

Weekly Downloads

2

Version

1.0.3

License

WTFPL

Unpacked Size

2.43 kB

Total Files

4

Last publish

Collaborators

  • arogancki