Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

convert HTMLCollection to array

/* convert HTMLCollection */
const buttonsV1 = [...document.getElementsByClassName("modal-detail-movie")]
const buttonsV2 = Array.from(document.getElementsByClassName("modal-detail-movie"))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #HTMLCollection #array
ADD COMMENT
Topic
Name
2+4 =