Created
February 13, 2019 10:09
-
-
Save stockenberg/01f5b4b693c9ef4c3f4ca54efccaf0e9 to your computer and use it in GitHub Desktop.
Javascript convert HTML Collection to Array
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Converts an HTML Collection to an regular Array */ | |
let arr = [].slice.call(ev.target.parentElement.parentElement.children); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment