Skip to content

Commit

Permalink
update notes
Browse files Browse the repository at this point in the history
  • Loading branch information
sean_chou committed Sep 16, 2018
1 parent 467df58 commit 6ec1e5d
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/javascript-es6-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ for (let s of set) {

讓 JavaScript object 中的 key 可以使用 string 以外的型態。

## Iterator

Iterator 為各種不同數據結構提供統一的訪問機制


## Generator
Expand Down
14 changes: 14 additions & 0 deletions typescript/sample/package.json
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 added typescript/sample/test.ts
Empty file.
22 changes: 22 additions & 0 deletions typescript/ts-study-group.md
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

0 comments on commit 6ec1e5d

Please sign in to comment.