let nodes = document.getElementsByTagName('*'); Array.prototype.indexOf.call(nodes, document.body);
let myList = ['foo', 'bar', 'qux']; myList.indexOf('bar'); // 1