diff --git a/snippets/nodeListToArray.md b/snippets/nodeListToArray.md index 22b408ce0..1f41b0a76 100644 --- a/snippets/nodeListToArray.md +++ b/snippets/nodeListToArray.md @@ -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];