Kolekcja do tablicy JavaScript
var coll = document.getElementsByTagName('div');
var arr = Array.prototype.slice.call( coll, 0 );
Glorious Gaur
var coll = document.getElementsByTagName('div');
var arr = Array.prototype.slice.call( coll, 0 );
var divCollection = document.getElementsByTagName('div');
var divArray = Array.from(divCollection);