summaryrefslogtreecommitdiffstats
path: root/js/README.md
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-22 01:27:08 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-22 01:27:08 +0200
commitd3a84beec07416e9753be6b0b1cf3dfe8deb4037 (patch)
tree3de113e32bcae185dd38c13269b92d5dcaf0fd7d /js/README.md
parent780fa978642bf7004023e5a558744fa610f5bc32 (diff)
readme fixes
Diffstat (limited to 'js/README.md')
-rw-r--r--js/README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/README.md b/js/README.md
index 8e2a373da..628e2c012 100644
--- a/js/README.md
+++ b/js/README.md
@@ -9,7 +9,7 @@ then run:
The news app uses [Traceur](https://github.com/google/traceur-compiler) to transpile ES6 into ES5. If you want to take a look at the features see [the language features reference](https://github.com/google/traceur-compiler/wiki/LanguageFeatures#language-features).
-### Iterator
+### Iterators
The following iterators are defined and availabe:
* **items**:
@@ -23,7 +23,7 @@ The following iterators are defined and availabe:
* **enumerate**:
```js
- // iterate over object key and value
+ // iterate over list and get the index and value
for (let [index, value] of enumerate(list)) {
console.log(`at position: ${index}, value is: ${value}`)
}