Skip to content

queckezz/compose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Compose two or more functions together

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published