Top 10 custom JavaScript functions of all time
If there was ever a universal common.js shared among the entire develosphere, you’d fine these ten (plus one bonus) functions. It would be the swiss army knife no developer would go into production without. They have no doubt been tested tried and true and have proven usefulness and helpfulness to all those who’ve used them. So without further ado, here are what I believe to the top ten greatest custom JavaScript functions in use today.
I’m glad I’m not the only one who was baffled by the lack of a getElementsByClass.
Interestingly inArray() adds a method to the Array prototype object, rather than creating an independent function. I think that is a way cool way to program, but for some reason I was under the impression Safari couldn’t handle it. Maybe they’ve changed that in the version of Safari I have or something, because I tested it and it works great.
Via Reddit.