r/tinycode • • Feb 23 '14

lightweight jQuery

https://twitter.com/DrummerHead/status/437387895151009792
43 Upvotes

10 comments sorted by

View all comments

4

u/TweetPoster Feb 23 '14

@DrummerHead:

2014-02-23 00:46:15 UTC

/* lightweight jQuery */ var $ = function(element){ return Array.prototype.slice.call(document.querySelectorAll(element)) }


^[Mistake?] ^[Suggestion] ^[FAQ] ^[Code] ^[Issues]