convert collection to array 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 );