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

Update generator.md

This commit is contained in:
Air_cc 2016-09-20 17:29:06 +08:00 committed by GitHub
parent 102bf25570
commit 9ac9f943f5

View File

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