Hacker GitHub

← All repos

es-shims/es5-shim

View on GitHub ↗ ★ 7,070 JavaScript

ECMAScript 5 compatibility shims for legacy (and modern) JavaScript engines

14 mentions on Hacker News by 14 people: 1 story, 13 comments · first 2011-04-27 · latest 2017-08-12

Mentions per year 14 mentions · busiest year 2013 (5)
20082026
  1. It requires ES5 features like Object.freeze and Object.defineProperty to work correctly. https://github.com/es-shims/es5-shim#may-fail
  2. A number of these things are available in IE9 and older using https://github.com/es-shims/es5-shim (including Object.create that the article was talking about)
    comment by tuxracer · 2014-11-06 · in Stop Using Constructors in JS (2012)
  3. True. But anyone supporting IE < 9 I'd think would be using ES5 shim: https://github.com/es-shims/es5-shim But maybe not?
  4. …I prefer using native methods (i.e. `forEach`, `map`, etc..) and including a JS shim (like https://github.com/es-shims/es5-shim ) to monkey-patch legacy browsers. And I know that these are just examples, but what is the point of writing:…
    comment by paulmcpazzi · 2014-02-06 · in Stop writing For loops. Start using underscore.
  5. Also the es5-shim library is quite nice, and includes a bind polyfill. https://github.com/es-shims/es5-shim
  6. …on jQuery by default, even if it is not necessary. [1] https://github.com/WebReflection/ie8 [2] https://github.com/es-shims/es5-shim [3] https://github.com/eligrey/classList.js
    comment by superlupo · 2014-01-30 · in You might not need jQuery
  7. https://github.com/kriskowal/es5-shim
    comment by 1wheel · 2013-10-03 · in You Can't JavaScript Under Pressure
  8. there are shims - the MDN one works well, or you can download this library to shim the whole of ES5 https://github.com/kriskowal/es5-shim (other libraries are availble) Focusing on modern browsers and shimming the old ones is the way to…
    comment by gotofritz · 2013-06-07 · in Fun.js – Just a sketch
  9. If you use es5-shim ( https://github.com/kriskowal/es5-shim ), you can say movePlayer.bind(this, "north") on older browsers.
  10. …= function (vArg) { return Object.prototype.toString.call(vArg) === "[object Array]"; }; } [1] https://github.com/kriskowal/es5-shim [2] http://underscorejs.org/#isArray
  11. …JS methods and functions that missing in IE <= 8. Then you never have to worry about IE again. https://github.com/kriskowal/es5-shim
    comment by richardofyork · 2013-03-25 · in Learning JavaScript - my experience and advice
  12. ▲ 1
    ECMAScript 5 compatibility shims for legacy JavaScript engines
    story by sharky · 2012-04-06 · 0 comments
  13. jQueryIsAwesome, you must not know what an ES5 shim is. It is a cross-browser solution. https://github.com/kriskowal/es5-shim Especially when you note that JavaScript is not just run in browsers these days, and that most server-side…
  14. I'm a big fan of es5-shim ( https://github.com/kriskowal/es5-shim/ ), which monkey-patches these handy methods in older browsers.
    comment by Sidnicious · 2011-04-27 · in Reducing Map: jQuery vs jQuery vs JavaScript