Update dom.md

This commit is contained in:
Yangshun Tay 2018-01-11 22:02:31 -08:00 committed by GitHub
parent 8396d8e2ca
commit 4cb656f12d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);