News for hackers. Stuff that matters.
Re:ES6 for beginners, part 3 by anon3433 on Monday December 11, 2017 @01:09PM (#15898912)
Array.prototype.map()[1] has been in js since ES5. Likewise with filter[2] and reduce[3]...

[1] http://es5.github.io/#x15.4.4.19

[2] http://es5.github.io/#x15.4.4.20

[3] http://es5.github.io/#x15.4.4.21

Re:ES6 for beginners, part 3 by abritinthebay on Monday December 11, 2017 @02:37PM (#15899641)
Yeah, it's strange - a lot of ES6/next tutorials seem to think that FP concepts in JS just showed up.

I don't get it.

Re:ES6 for beginners, part 3 by WorldMaker on Monday December 11, 2017 @04:29PM (#15900632)
Possibly says something about how long it took for people to trust ES5 was supported by the browsers they were writing for. It seemed to some people that ES5 and ES6/ES2015 were added to browsers "at the same time", due to legacy effects of browsers many felt a need to support for far too long in major enterprise environments (<cough>IE6</cough>).
Re:ES6 for beginners, part 3 by Xyzodiac on Monday December 11, 2017 @02:25PM (#15899540)
I found it confusing it was mentioned in this article because of this. I wonder if they just wanted to show off how elegant arrow functions are and used those as an example?