1
2
3
4
5
6
7
[].forEach.call(document.querySelectorAll('a'), function (element, index, array) {
  console.log(element);
});

[].slice.call(document.querySelectorAll('a'), 0).forEach(function(element, index, array){
  console.log(element);
});