fp-curry-core
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i fp-curry-core

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

2.6 kB

Total Files

4

Last publish

Collaborators

  • dasx10