re: Basic monads in Javascript VIEW POST


Thanks, I wonder what the implications are for performance?


Typically pretty negligible. The Maybe monad just checks the value against null and undefined and calls the callback function. So, not much happening.


Yes, but you also create a new callback function for each step, and the gc should clean them up.

Code of Conduct Report abuse