Commit graph

33 commits

Author SHA1 Message Date
joaquinelio
dbae68c452
Plunker reminder #1775 2021-04-11 04:00:11 -03:00
LeviDing
adf83c64b7
Update article.md 2020-11-16 00:32:55 +08:00
Vse Mozhe Buty
05dfb56786
Fix typo, add note in 1.12.2 (Async iteration) 2020-11-01 18:59:36 +02:00
Zhi Yin
2c65914e3b
correct minor typo 2020-09-27 16:13:21 -04:00
Ilya Kantor
58f6599df7 minor fixes 2020-09-05 18:46:24 +03:00
Ilya Kantor
ba5424a82d minor fixes 2020-09-05 18:04:50 +03:00
Ilya Kantor
94279abe98
Merge pull request #1738 from javascript-tutorial/paroche-patch-18
Update article.md
2020-09-05 17:05:05 +03:00
Ilya Kantor
b057341f6c refactor objects, add optional chaining 2020-05-03 16:56:24 +03:00
Peter Roche
88120708b1
"allows to" -> "allows us to" (2x) 2020-02-28 23:48:18 -07:00
Peter Roche
177f4b3b5e
Update article.md
"we should use `for...loop`" -> "we should use a `for...loop`"
2020-02-28 22:32:22 -07:00
Peter Roche
6c8433eedf
Update article.md
Rephrasing introductory sentences about async iterators and generators.
2020-02-28 21:27:44 -07:00
Peter Roche
ce70814086
Update article.md
My proposed change may not be right, but "make a request to URL" was unclear, and it's `fetch` that's used below to make the request. If 'request to URL' has some special meaning and is what you want to say, maybe some rephrasing is in order.
2020-02-06 23:36:04 -07:00
Peter Roche
9a4bc89d6d
Update article.md
"such as browsers" -> "like in browsers"
2020-02-06 23:27:22 -07:00
Peter Roche
537c33493a
Update article.md
Several punctuation changes, yielding:

"1. We use the browser [fetch](info:fetch) method to download from a remote URL. It allows us to supply authorization and other headers if needed -- here GitHub requires `User-Agent`.
2. The fetch result is parsed as JSON. That's again a `fetch`-specific method.
3. We should get the next page URL from the `Link` header of the response. It has a special format, so we use a regexp for that. The next page URL may look like `https://api.github.com/repositories/93253246/commits?page=2`. It's generated by GitHub itself.
4. Then we yield all commits received, and when they finish, the next `while(url)` iteration will trigger, making one more request."
2020-02-06 23:21:57 -07:00
Ilya Kantor
994390265a fixes #1669 2019-12-27 11:40:59 +03:00
hrodward
9f158f9a75
Update article.md
Grammar suggestions
2019-11-04 10:45:48 +01:00
Daria Pimenova
f6452cb075
Update article.md 2019-10-02 15:32:37 +04:00
fires3as0n
1360bf91db
Update article.md
fixed a typo
2019-09-22 10:59:04 +03:00
Ilya Kantor
77dc1ba4b3 fix 2019-09-21 22:12:22 +03:00
Ilya Kantor
39309e6a07 minor 2019-08-14 12:36:24 +03:00
Ilya Kantor
919ddb8eaa minor 2019-08-09 13:47:34 +03:00
Ilya Kantor
7ba2f4f965 minor 2019-08-08 22:35:53 +03:00
Gleb
a72ced0dc6
Remove redundant article 2019-07-08 17:49:48 +03:00
Ilya Kantor
9b95b5ee0e minor 2019-06-18 16:10:06 +03:00
jasmaa
3e2e8c7e23
Spelling and grammar fixes to generators and modules 2019-06-11 22:35:05 -04:00
Ilya Kantor
82ab3fb82b minor 2019-06-05 11:29:20 +03:00
Alexey Pyltsyn
ca92aed539 1-js/12-generators-iterators/2-async-iterators-generators: fix typo 2019-05-01 16:44:47 +03:00
Alexey Pyltsyn
4c2ab7343d Replace Github with GitHub 2019-04-24 00:41:59 +03:00
Alexey Pyltsyn
c5ce5578fc Fix name of JavaScript 2019-04-23 11:54:43 +03:00
Ilya Kantor
203b8f9f07 fixes 2019-04-22 17:52:53 +03:00
Sergey Zelenov
4f6864e1b0
fix typo in article title
iteration -> iterators
2019-04-19 14:10:06 +02:00
Andy Slezak
d51508746a
Spelling fix: fasion -> fashion 2019-03-08 23:31:00 -05:00
Ilya Kantor
5bca8a5ee2 move generators 2019-03-07 13:51:21 +03:00