DEV Community

Discussion on: Dealing with side effects and pure functions in javascript

Collapse
 
vonheikemen profile image
Heiker • Edited

That's a little bit of the functor pattern*, it's really weird at first but it gets easier to read and write with practice.

*Is not officially a pattern but I like to think of them in that way.