Package Exports
- structs-compose
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (structs-compose) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
structs-compose
Function composition.

Composing any number of functions is a chaining process in which the output of a function gets passed to the next function and so on until a final output is produced.
f(data) -> modified data -> g(modified data) -> ...Installation
$ npm install structs-composeExample
var times2plus1 = compose(plus1, times2)
// times2plus1(3) -> 7
function plus1 (x) {
return x + 1
}
function times2 (x) {
return x * 2
}Usage
Documentation is available here.
Tests
$ npm test