JSPM

@queckezz/compose

0.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q28433F
  • License MIT

Function composition

Package Exports

  • @queckezz/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 (@queckezz/compose) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

compose

Build Status NPM version Dependency Status License Test coverage Js Standard Style

Compose two or more functions together.

Function Composition

What is it?

If you aren't familiar with function composition you can read all about it here.

Installation

$ npm install @structs/compose

Example

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

License

MIT