const merge = require('recursive-deep-merge');
const a = {
a: 1,
b: {
c: 2,
d: 4
},
e: [
5,
{
f: 6,
g: 7
}
]
};
const b = {
a: 9,
b: {
c: 8
},
e: [
7,
{
f: 5
}
]
};
const merged = merge(a, b);
// merged:
// {
// a: 9,
// b: {
// c: 8,
// d: 4
// },
// e: [
// 7,
// {
// f: 5,
// g: 7
// }
// ]
// }
-
Notifications
You must be signed in to change notification settings - Fork 0
Recursively merge objects and arrays
License
nohorjo/recursive-deep-merge
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Recursively merge objects and arrays
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published