object-fuse
v1.0.1
Published
Creates a deep copy of each object and then fuses them togehter
Downloads
3
Readme
object-fuse
Description:
Merges objects together Any arrays on the same value are concatenated
Example
var o1 = {
a: 1,
b: 2,
c: {
ca: 1,
cb: 2,
cc: {
cca: 100,
ccb: 200
}
}
};
var o2 = {
a: 10,
c: {
ca: 10,
cb: 20,
cc: {
cca: 101,
ccb: 202
}
}
};
var o3 = {
a: 16,
c: {
cd: 54
}
}
var o4 = require('auriga/object/fuse')(o1, o2, o3);