Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Polyfill or workarounds for ECMAScript5 new features?

I want to write my JS code with the new ECMAScript5 features that working today and in the future.

As not all browsers support all the features (especially IE) such as Object.create, Array.isArray or JSON.

I knew a few workarounds such as use json2.js to archieve JSON support. I want to know more polyfills or workarounds for the other feature.

like image 652
steveyang Avatar asked Nov 22 '11 03:11

steveyang


1 Answers

Take a look at these :

https://github.com/kriskowal/es5-shim

https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Browser-Polyfills ( es5 shims listed in the middle)

like image 157
pradeek Avatar answered Nov 14 '22 17:11

pradeek