In ES5 if have a NodeList and want to loop through it must first convert it to Array with slice
and call
. I can't understand correctly how this statement works. I need explanation.
let nodeList = document.querySelectorAll('div');
let nToArr = Array.prototype.slice.call(nodeList);
// Then Loop Through it ....