New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

new-chain

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

new-chain

Create chaining APIs from functions

0.0.0
Source
npm
Version published
Weekly downloads
17
1600%
Maintainers
1
Weekly downloads
 
Created
Source

new-chain

Create chaining APIs from functions

Install

$ npm install new-chain

Usage

x = 0
val = newChain(mul, sum, sub)

val.sum(8).sub(2).mul(3)

x
// => 18

function mul(n){
    x *= n
}

function sum(n){
    x += n
}

function sub(n){
    x -= n
}

FAQs

Package last updated on 23 Apr 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts