how to convert collection to array in javascript code example
Example: collection to array javascript
var coll = document.getElementsByTagName('div');
var arr = Array.prototype.slice.call( coll, 0 );
var coll = document.getElementsByTagName('div');
var arr = Array.prototype.slice.call( coll, 0 );