mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 10:22:23 +00:00
Update array.md
undefined拼错
This commit is contained in:
parent
2d9e0fa7b1
commit
f132557145
@ -74,7 +74,7 @@ function foo() {
|
||||
|
||||
```javascript
|
||||
Array.from({ length: 3 });
|
||||
// [ undefined, undefined, undefinded ]
|
||||
// [ undefined, undefined, undefined ]
|
||||
```
|
||||
|
||||
上面代码中,`Array.from`返回了一个具有三个成员的数组,每个位置的值都是`undefined`。扩展运算符转换不了这个对象。
|
||||
|
Loading…
x
Reference in New Issue
Block a user