how to slice a nodelist in js code example
Example: js convert nodelist to array
// Get all buttons as a NodeList
var btns = document.querySelectorAll('button');
// Convert buttons NodeList to an array
var btnsArr = Array.from(btns);
// Get all buttons as a NodeList
var btns = document.querySelectorAll('button');
// Convert buttons NodeList to an array
var btnsArr = Array.from(btns);