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