Change docs for nodeListToArray

This commit is contained in:
Siarhei
2018-09-05 18:36:06 +04:00
parent c76e8a8ff4
commit 48ec122b74

View File

@ -2,7 +2,7 @@
Converts a `NodeList` to an array.
Use `Array.prototype.slice()` and `Function.prototype.call()` to convert a `NodeList` to an array.
Use spread operator inside new array to convert a `NodeList` to an array.
```js
const nodeListToArray = nodeList => [...nodeList];