Change docs for nodeListToArray
This commit is contained in:
@ -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];
|
||||
|
||||
Reference in New Issue
Block a user