When working with ramda or lodash-fp, one may run into some rather cryptic error messages. When trying to console.log
a function we're presented with the guts of some internal curry
or compose
implementation that tells us nothing. At Loop/Recur we enjoy working with Functional JavaScript so I'd like to see this improve.
This post will demonstrate a simple solution that can go a long way to enhance the debugging experience in functional JavaScript applications.