map-trace
v1.0.0
Published
Impure trace function to debug a composition
Downloads
13
Maintainers
Readme
Usage
const trace = require('trace');
var dasherize = compose(join('-'), toLower, trace('after split'), split(' '), replace(/\s{2,}/ig, ' '));
// after split [ 'The', 'world', 'is', 'a', 'vampire' ]
dasherize('The world is a vampire');
For more details, please see https://drboolean.gitbooks.io/mostly-adequate-guide/content/ch5.html#debugging