Created
February 11, 2015 20:42
-
-
Save jonalvarezz/4764fc371bf58fb70de8 to your computer and use it in GitHub Desktop.
Convert a NodeList 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
// Convert a NodeList to Array | |
// http://davidwalsh.name/nodelist-array | |
var nodesArray = [].slice.call(document.querySelectorAll("div")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment