3 ms·
Just because you can doesn't mean you should. Shit, for adding an array of objects with numbers just use a simple map/reduce instead of confusing future develop
by 734129837261 5y ago
Just because you can doesn't mean you should. Shit, for adding an array of objects with numbers just use a simple map/reduce instead of confusing future developers with your fancy curry.
Whenever I run into a curry, I can usually solve the same issue with a simple for loop that makes it instantly clear what the code does, always.