Collections of helper functions for functional programming.
# npm
npm install fp-helpers
# yarn
yarn add fp-helpers
Function | Description |
---|---|
compose(f, g, ...)(myvalue) |
Compose multiple synchronous functions |
composeAsync(f, g, ...)(myvalue) |
Compose multiple asynchronous functions |
toKoa(fn) |
Convert to koa middleware |
MIT, see LICENSE.md.