Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symbol API explained #71

Open
karliky opened this issue Mar 22, 2018 · 2 comments
Open

Symbol API explained #71

karliky opened this issue Mar 22, 2018 · 2 comments

Comments

@karliky
Copy link
Collaborator

karliky commented Mar 22, 2018

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:
screen shot 2018-03-22 at 18 37 22
screen shot 2018-03-22 at 18 37 33
screen shot 2018-03-22 at 18 37 42

@Kikobeats
Copy link
Owner

Probably we need to create a new section for this

@Kikobeats
Copy link
Owner

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants