🚧 under construction
JS ⟩ value ⟩ object ⟩ extend
desc
// code
merge with objects
Object.assign() - copy property values from other objects.
obj.mergeWith() - copy data/accessor properties from other objects.
inheritance
prototype
__proto__
prototype chain
class A vs. class A extends Object
mixin
mixin inheritance
extending built-in classes
(2020) JavaScript: The Definitive Guide
6.7 Extending Objects
6.10 Extended Object Literal Syntax
Last updated 3 years ago