Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
index.js
main.js
package-lock.json
package.json

README.md

@jszilla/compose

Send in a n number of functions to chain/pipe a value through. This function composition pattern is used in many middleware based libraries like express.js and redux.

e.g:

const composed = compose(toUpperCase, strongify, pad, endSmile, startSmile);
const applyAllToStr = composed('foobar');

console.log(applyAllToStr); // returns :) ----------<strong>FOOBAR</strong>---------- :)

** see index.js for implementations of toUpperCase, strongify ... startSmile

You can’t perform that action at this time.