Skip to content

Commit

Permalink
docs(readme): Add a note about precedence
Browse files Browse the repository at this point in the history
Closes #115.
  • Loading branch information
bebraw committed Aug 27, 2019
1 parent c3a5156 commit ad2f92a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Expand Up @@ -21,6 +21,15 @@ var output = merge(object1, object2, object3, ...);
// You can pass an array of objects directly.
// This works with all available functions.
var output = merge([object1, object2, object3]);

// Please note that where keys match,
// the objects to the right take precedence:
var output = merge(
{ fruit: "apple", color: "red" },
{ fruit: "strawberries" }
);
console.log(output);
// { color: "red", fruit: "strawberries"}
```

### **`merge({ customizeArray, customizeObject })(...configuration | [...configuration])`**
Expand Down

0 comments on commit ad2f92a

Please sign in to comment.