News for hackers. Stuff that matters.
Re:Ask HN: Is web programming a series of hacks on hacks? by TheAceOfHearts on Monday September 12, 2016 @02:11AM (#12477558)
String.prototype.endsWith is native [0], it was added as part of ES2015. If you're supporting older platforms, you need to polyfill it.

[0] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

Re:Ask HN: Is web programming a series of hacks on hacks? by jorblumesea on Monday September 12, 2016 @02:18AM (#12477588)
How well supported is ES6 across browsers? Chrome for sure. Not sure about FF or IE.
Re:Ask HN: Is web programming a series of hacks on hacks? by gildas on Monday September 12, 2016 @05:56AM (#12478359)
The support is quite good today, see https://kangax.github.io/compat-table/es6/.
Re:Ask HN: Is web programming a series of hacks on hacks? by astrodust on Monday September 12, 2016 @02:38AM (#12477665)
You can transpile to ES5 if you've got compatibility issues. Not really a problem.
Re:Ask HN: Is web programming a series of hacks on hacks? by aredherring on Wednesday September 14, 2016 @05:25AM (#12495202)
Transpiling usually concerns syntax. Babel won't transpile .endsWith to a polyfill for you, hence the existence of that package