1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-25 19:22:21 +00:00

Merge pull request #264 from air-cc/patch-1

Update generator.md
This commit is contained in:
Ruan YiFeng 2016-09-21 19:15:37 +08:00 committed by GitHub
commit 1b6a131e9f

View File

@ -403,7 +403,7 @@ function* numbers () {
// 扩展运算符
[...numbers()] // [1, 2]
// Array.form 方法
// Array.from 方法
Array.from(numbers()) // [1, 2]
// 解构赋值