Last active
August 30, 2017 15:56
-
-
Save stvnrynlds/83f3cbc3b8c3c7bc3c921ef8fb8ae90a to your computer and use it in GitHub Desktop.
Fun with array-like objects
This file contains hidden or 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
function nodeListToArray(nodeList) { | |
return [].slice.call(nodeList); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment