concept object.assign in category javascript
appears as: Object.assign

This is an excerpt from Manning's book The Joy of JavaScript.
Skips over properties not owned by the object directly (since it uses Object.assign). This forces good practices of keeping mixin properties directly on the objects themselves to discourage you from trying to use a mixin’s prototype. However, it’s sensible for mixins themselves to be composed with other mixins forming a tree like hierarchy, which is composition at a larger scale.
Figure 3.9 Shows how multiple inheritance is possible using Object.assign’s mechanism that takes care of establishing a predictable order in which source objects are assigned into the target
![]()