0.1.1 • Published 6 years ago

@syednashikaman/currying v0.1.1

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

Currying

A NPM package that allows you to create partial functions!

How to Install

# node
$ npm install --save @syednashikaman/currying

# yarn
$ yarn add @syednashikaman/currying

How to Use

// your-file.js
require('currying');

function say(firstWord, secondWord) {
  return firstWord + ' ' + secondWord;
}

const sayHello = say.curry('Hello');
sayHello('world!'); // "Hello world!"