DEV Community

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

Collapse
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

Collapse
klvenky profile image
Venkatesh KL Author

that would be the exact name "transducer"