Update array.md

undefined拼错
This commit is contained in:
kei0502
2016-08-10 16:47:36 +08:00
committed by GitHub
parent 2d9e0fa7b1
commit f132557145
+1 -1
View File
@@ -74,7 +74,7 @@ function foo() {
```javascript
Array.from({ length: 3 });
// [ undefined, undefined, undefinded ]
// [ undefined, undefined, undefined ]
```
上面代码中,`Array.from`返回了一个具有三个成员的数组,每个位置的值都是`undefined`。扩展运算符转换不了这个对象。