Last active
August 26, 2016 16:23
-
-
Save scott-riley/33ee741311ecd30510abfb0c4b66ef9d to your computer and use it in GitHub Desktop.
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
// NodeList as querySelectorAll results | |
let nodeList = document.querySelectorAll('div'); | |
// Hacky Array.slice() call with no delimeter = ordered array | |
const divArray = Array.prototype.slice.call(nodeList); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment