Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

html collection of elements to array

var boxes = Array.prototype.slice.call(document.getElementsByClassName('box'));

var boxes = [].slice.call(document.getElementsByClassName('box'));
Source by www.gavsblog.com #
 
PREVIOUS NEXT
Tagged: #html #collection #elements #array
ADD COMMENT
Topic
Name
2+6 =