Travis build: 388

This commit is contained in:
30secondsofcode
2018-09-07 05:39:10 +00:00
parent 7d06eb6564
commit d0247e91a3
2 changed files with 3 additions and 3 deletions

View File

@ -3792,10 +3792,10 @@ isBrowserTabFocused(); // true
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 => Array.prototype.slice.call(nodeList);
const nodeListToArray = nodeList => [...nodeList];
```
<details>