1.0.0 • Published 2 years ago

fp-curry-core v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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";