fp-curry-core
v1.0.0
Published
Curry function
Downloads
2
Readme
Basic Curry function
Use
Instal
npm i fp-curry-core
Example
import curry from 'fp-curry-core';
const concatStrings = (y, x) => y + x; // function (x);
const concatStringsCurry = Curry(concatStrings); // function (x);
const concatUser = concatStringsCurry("User"); // function (x);
const userEmail = concatUser("Email") // "UserEmail";
const userName = concatUser("Name") // "UserName";
const fullString = concatStringsCurry("full", "String"); // "fullString";