DEV Community

Discussion on: Reduce is not my best friend(anymore)

rafaelassumpcao profile image
Rafael A • Edited

maybe a transducer could work better for you here and specifically for this type of problem

see this video about transducer in Javascript

klvenky profile image
Venkatesh KL Author

that would be the exact name "transducer"