Change docs for nodeListToArray

This commit is contained in:
Siarhei
2018-09-05 18:36:06 +04:00
parent e6c1427412
commit 10fd881b1e

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];