Functional programming in JavaScript

It is all about composition

f: A=>B

g: B=>C

c: A=>C 

g . f

g (f (a))

f: A=>List[B]

g: B=>C

 

f: A=>B or NULL

g: B=>C

 

f: A=>B and exceptions sometimes

g: B=>C

 

Composition

deck

By Svetlana Filimonova