Skip to content

Instantly share code, notes, and snippets.

@thomasjao
Created April 24, 2016 07:53
Show Gist options
  • Save thomasjao/35b659c3ef630dd4eab2a46da9dea36a to your computer and use it in GitHub Desktop.
Save thomasjao/35b659c3ef630dd4eab2a46da9dea36a to your computer and use it in GitHub Desktop.
Transfer node list to array
var node_array = Array.prototype.slice.call( node_list )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment