One of the common "gateways" to getting hooked on FP is when developers discover composition patterns. In JS, this often looks like chains of array method calls using map(), filter(), and reduce(). But deep in the caves below the surface, dragons (of inefficiency) lurk!
We'll explore the caves, slaying those dragons as we uncover various ways of transforming our compositions in JS, including generators and transducers.