Extends a target object with the properties of one or more source objects. Uses Object.assign internally.
Object.assign
The target object
The source objects
The extended target object
const ext = extend({ a: 1 }, { b: 2 }); // { a: 1, b: 2 } Copy
const ext = extend({ a: 1 }, { b: 2 }); // { a: 1, b: 2 }
Extends a target object with the properties of one or more source objects. Uses
Object.assigninternally.