Bagaimana menemukan indeks item di nodelist di JS
let nodes = document.getElementsByTagName('*');
Array.prototype.indexOf.call(nodes, document.body);
Shy Seal
let nodes = document.getElementsByTagName('*');
Array.prototype.indexOf.call(nodes, document.body);