-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
sean_chou
committed
Sep 16, 2018
1 parent
467df58
commit 6ec1e5d
Showing
4 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name": "sample", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"dependencies": { | ||
"typescript": "^3.0.3" | ||
} | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Iterators and Generators | ||
|
||
http://www.typescriptlang.org/docs/handbook/iterators-and-generators.html | ||
|
||
|
||
## Outline | ||
|
||
Iterator and Iterables | ||
|
||
有哪些 & 例子(array, string) | ||
|
||
for..of statements | ||
|
||
for..of vs. for..in statements | ||
|
||
what is generator | ||
|
||
怎麼使用 generator | ||
|
||
## Reference | ||
|
||
http://es6.ruanyifeng.com/#docs/generator |