3 ms·
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 show
by nobleach 2y ago
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.
- suzzer99 2y agoA forEach that could handle async/await would be nice. But for ... in is almost as good.