Comparing version
{ | ||
"name": "smob", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Zero dependency library to safe merge objects.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs", |
@@ -37,3 +37,3 @@ # SMOB 🧪 | ||
Merge source and target arrays by priority order. | ||
- **arrayDistinct**: `false` Remove duplicates, when merging array properties. | ||
- **arrayDistinct**: `false` Remove duplicates, when merging array elements. | ||
@@ -49,4 +49,4 @@ The merge behaviour can be changed by creating a custom [merger](#merger). | ||
console.log(merge({ a: 1 }, { a: 2 }, { a: 3 })); | ||
// => { a: 1 } | ||
console.log(merge({ a: 1 }, { b: 2 }, { c: 3 })); | ||
// => { a: 1, b: 2, c: 3 } | ||
``` | ||
@@ -53,0 +53,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
36538
4.19%59
1.72%