Created
May 2, 2014 17:06
-
-
Save junosuarez/00d25d3d5fc3b061e2fa to your computer and use it in GitHub Desktop.
make node lists arrays fer goodness sake
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
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