Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

collection to array javascript

var coll = document.getElementsByTagName('div');

var arr = Array.prototype.slice.call( coll, 0 );
 
PREVIOUS NEXT
Tagged: #collection #array #javascript
ADD COMMENT
Topic
Name
1+6 =