DEV Community

Discussion on: Jan 18: DEV Daily Discovery

Collapse
 
vonheikemen profile image
Heiker

You know how some people say that it's useless to re-implement array methods in terms of .reduce.... well, it turns out it's not that useless. We can use that handy "feature" to build composable operations on top of reducers, and use .reduce itself as an iteration protocol. This stuff is insane.