Functional Programming In JavaScript — With Practical Examples (Part 1)

Any class(or construction function) or a datatype that stores a value and implements “map” method is called a “Functor”.

It’s worth mentioning that if Javascript’s Function prototype had a composition function (f => g => x => f(g(x))), functions were actually functors in Javascript. However, functions don’t store values, but lazily produce them.

Functors are such a generalized concept that it is hard to describe them in natural language.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.