JavaScript Standard Library 1.8+
I just came across Andrea Giammarchi's JavaScript Standard Library, a ≈2.7KB library which transparently adds JavaScript 1.6 methods (mostly the new Array stuff) to browsers which don't support them natively.
Surprisingly, this is the first library I've seen whose sole purpose is JavaScript version compatibility. Andrea says it provides "a quite totally standard environment", and offers some unit tests.
I haven't used it yet, but it's a cool idea.
Note that JSL does not include the JavaScript 1.8 methods Array.reduce() and Array.reduceRight(). If you need those, try the compatibility code offered by Mozilla, here and here.
Comments
No comments yet.