Skip to content

Commit

Permalink
Update dom.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yangshun authored Jan 12, 2018
1 parent 8396d8e commit 4cb656f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front-end/dom.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ A `NodeList` can contain any node type, but an `HTMLCollection` is supposed to o

**How do you convert an `HTMLCollection` or `NodeList` into an array?**

```
```js
const nodelist = document.querySelectorAll('div');
// Array.from
const divArray = Array.from(nodelist);
Expand Down

0 comments on commit 4cb656f

Please sign in to comment.