News for hackers. Stuff that matters.
Re:What Did Ada Lovelace's Program Actually Do? (2018) by nobleach on Tuesday December 17, 2024 @12:36PM (#42443331)
I once worked with a dev that implemented his own forEach in JavaScript. And literally used an ECMAScript version 6 feature to do so! (native forEach in JS showed up in ECMAScript 5) Meanwhile, that project already had jQuery and Underscore... which also had their own versions of forEach! It was a bizarre choice.
Re:What Did Ada Lovelace's Program Actually Do? (2018) by suzzer99 on Tuesday December 17, 2024 @03:50PM (#42445177)
A forEach that could handle async/await would be nice. But for ... in is almost as good.