$ npm install currify
Translate the evaluation of a function that takes multiple arguments into evaluating a sequence of functions, each with a single or more arguments.
npm i currify --save
const currify = require('currify');
const mean = (a, b, c) => (a + b) / c;
const mean1 = currify(mean, 1);
const mean2 = mean1(2);
mean2(2);
// returns
1.5
fullstore - functional variables.
zames - converts callback-based functions to Promises and apply currying to arguments
wraptile - translate the evaluation of a function that takes multiple arguments into evaluating a sequence of 2 functions, each with a any count of arguments.
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE