tandoori

1.0.1 • Public • Published

Tandoori

Tandoori is a simple currying module which could be useful for testing functions with a partial number of arguments

Installation:

 $ npm install tandoori

Usage:

    const curry = require('tandoori');
 
    curry(console.log)[100]('added at element 100').cook('added at the end');
 
    const exampleFunction = curry(((example, ...args) => console.log(example, ...args)))[100]('added at element 100').cook;
    exampleFunction('added at first missing argument.');
 
    curry.inject();
 
    console.log.curry()[100]("added at element 100").cook('added at the end');
 
    console.log.curry()[100]("added at element 100").overwrite().cook('added at the end');

Edits:

Github Repo to come soon

Package Sidebar

Install

npm i tandoori

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • tomzer0