NodeList to an array....) inside new array to convert a NodeList to an array.const nodeListToArray = nodeList => [...nodeList];
nodeListToArray(document.childNodes); // [ <!DOCTYPE html>, html ]Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️