Open karliky opened 6 years ago
Context: It would be great if we can explain how the new ES6 Symbol API works and how toPromitive is used in every type coercion.
toPromitive
Screenshots:
Probably we need to create a new section for this
An object is said to be iterable if it exposes a property called Symbol.iterable, which is a function that returns an iterator object.
https://loige.co/javascript-iterator-patterns/
Context: It would be great if we can explain how the new ES6 Symbol API works and how
toPromitive
is used in every type coercion.Screenshots: