1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00

Typo fixed

This commit is contained in:
鱼香茄子 2017-05-29 00:08:53 +08:00 committed by GitHub
parent 3347915274
commit 3c1b926950

View File

@ -792,7 +792,7 @@ for (let value of myArray) {
``` ```
- 有着同`for...in`一样的简洁语法,但是没有`for...in`那些缺点。 - 有着同`for...in`一样的简洁语法,但是没有`for...in`那些缺点。
- 不同`forEach`方法,它可以与`break``continue``return`配合使用。 - 不同于`forEach`方法,它可以与`break``continue``return`配合使用。
- 提供了遍历所有数据结构的统一操作接口。 - 提供了遍历所有数据结构的统一操作接口。
下面是一个使用break语句跳出`for...of`循环的例子。 下面是一个使用break语句跳出`for...of`循环的例子。