Skip to content

Instantly share code, notes, and snippets.

@junosuarez
Created May 2, 2014 17:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save junosuarez/00d25d3d5fc3b061e2fa to your computer and use it in GitHub Desktop.
Save junosuarez/00d25d3d5fc3b061e2fa to your computer and use it in GitHub Desktop.
make node lists arrays fer goodness sake
Object.getOwnPropertyNames(Array.prototype).filter(function (x) { return typeof Array.prototype[x] === 'function' }).forEach(function (x) { NodeList.prototype[x] = Array.prototype[x] })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment