objects.assign
jkvyff opened this issue · 1 comments
jkvyff commented
Assign merges object properties from all supplied objects. If a property already exists, then it is overwritten when merged from left to right.
Checklist
- implementation
- tests
- jsdoc
Details
const someObj = { hold: 44, fast: 14 };
const result = objects.assign(someObj, { hold: 25, your: 19, horses: 4 });
console.log(result);
> { hold: 25, fast: 14, your: 19, horses: 4 }
References
evanplaice commented
Added in v0.67