Skip to content

Пример с кастомным @@iterator для for...of #15

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

Merged
merged 3 commits into from Feb 18, 2021
Merged

Conversation

ghost
Copy link

@ghost ghost commented Sep 30, 2019

Пример для объяснения, что

  1. for...of работает с сущностями у которых есть метод @@iterator, то есть с перечисляемыми
  2. @@iterator можно задавать кастомный и он так же будет работать с for...of

Пример для объяснения, что 
1) for...of работает с сущностями у которых есть метод @@iterator, то есть с перечисляемыми
2) @@iterator можно задавать кастомный и он так же будет работать с for...of
Copy link
Contributor

@DzyubSpirit DzyubSpirit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please run npx eslint --fix JavaScript/6-for-of.js to fix and check your codestyle

Copy link
Contributor

@DzyubSpirit DzyubSpirit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good stuff but, please, run npx eslint --fix JavaScript/6-for-of.js before each time you're sending code for the review

@ghost
Copy link
Author

ghost commented Feb 17, 2021

Good stuff but, please, run npx eslint --fix JavaScript/6-for-of.js before each time you're sending code for the review

Этот кейс решается посредством gh-actions ( https://github.com/actions/setup-node ). У меня есть свои причины не скачивать репозиторий для локального редактирования с workflow. Как минимум, мне проще вносить мелкие изменения в онлайн редакторе, а не скачивать все 100500 репозиториев для этого. Но в любом случае, не думаю, что "next time" будет.

@DzyubSpirit
Copy link
Contributor

Сам был бы рад, если бы кто-либо уделил время, чтобы настроить CI.
Я тоже не скачивал репозитории, а проверял с помощью repl.it.

Till no next time!

@DzyubSpirit DzyubSpirit merged commit c8a52c1 into HowProgrammingWorks:master Feb 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant