vanillaes/absurdum

objects.assign

jkvyff opened this issue · 1 comments

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

Added in v0.67