JS: Prototype Tree
Prototype Hierarchy
Here is a diagram of JavaScript object's Prototype Hierarchy.
- 🔸Object.prototype
- ⟶🔸{…}
- ⟶🔸Function.prototype
- ⟶⟶🔸Object
- ⟶⟶🔸Function
- ⟶⟶🔸Array
- ⟶⟶🔸Date
- ⟶⟶🔸RegExp
- ⟶⟶🔸Set
- ⟶⟶🔸Map
- ⟶⟶🔸Symbol
- ⟶⟶🔸function … {…}
- ⟶⟶🔸class … {…}
- ⟶🔸Array.prototype
- ⟶⟶🔸[…]
- ⟶🔸Date.prototype
- ⟶⟶🔸new Date(…)
- ⟶🔸RegExp.prototype
- ⟶⟶🔸/…/…
- ⟶🔸Set.prototype
- ⟶⟶🔸new Set(…)
- ⟶🔸Map.prototype
- ⟶⟶🔸new Map(…)
- ⟶🔸Symbol.prototype
- ⟶⟶🔸Symbol(…)
- ⟶🔸Math
- ⟶🔸JSON