@syednashikaman/currying
v0.1.1
Published
Make partial functions with currying!
Downloads
5
Maintainers
Readme
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!"