Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript collection to array

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

var	divArray = Array.from(divCollection);
 
PREVIOUS NEXT
Tagged: #javascript #collection #array
ADD COMMENT
Topic
Name
7+2 =