DEV Community

Discussion on: Functional programming basics part 1: Pure function

 
ysael profile image
ysael pepin

Unfortunately the signature wont make this function pure.

What you would need in this case is composition which would allow you to compose 2 functions. I will at one point cover composition, in the mean time, you can read that great article by Eric Elliott --> medium.com/javascript-scene/master...