Skip to content

Commit

Permalink
Update array.md
Browse files Browse the repository at this point in the history
  • Loading branch information
CatcherO authored Mar 12, 2018
1 parent c26d2a5 commit 59f8665
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/array.md
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ function foo() {
}
```

上面代码中,`querySelectorAll`方法返回的是一个类似数组的对象,可以将这个对象转为真正的数组,再使用`forEach`方法。
上面代码中,`querySelectorAll`方法返回的是一个类似数组的对象,可以将这个对象转为真正的数组,再使用`filter`方法。

只要是部署了 Iterator 接口的数据结构,`Array.from`都能将其转为数组。

Expand Down

0 comments on commit 59f8665

Please sign in to comment.