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

dot-curry

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dot-curry

non-intrusive, chainable curry function

0.0.2
latest
Source
npm
Version published
Maintainers
1
Created
Source

Build Status

browser support

dot-curry

non-intrusive, chainable curry function

Getting Started

Install it to your project:

npm install --save dot-curry

Require it in your file:

var curry = require( 'dot-curry' );

Add the curry method to a function you wish to curry:

function f( a, b, c ) {
  return a ? b : c;
}

f.curry = curry;

Use the curry method when needed:

f( 0, 1, 2); // 2
f.curry( 0 )( 1, 2 ); // 2
f.curry( 0 ).curry( 1 )( 2 ); // 2
f.curry( 0 ).curry( 1 ).curry( 2 )(); // 2

var f0 = f.curry( 0 );
f0( 1, 2 ); // 2

Keywords

curry

FAQs

Package last updated on 13 Jul 2014

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