This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

braid

0.0.1 • Public • Published

Braid

Fancy function composition for JavaScript.

Show me how

// Create a new function from several other functions.
var combinedFn = braid.compose(
  fn1,               // Use any number of function references
  fn2,
  [fn3, arg1, arg2], // You can provide a function with additional arguments
  fn4
);

// Now, let's use the returned function.
var value1 = combinedFn('abc');
var value2 = combinedFn('def');

// You can also pipe a value directly through a set of functions, returning
// the result.
var value = braid.pipe('ghi', fn1, fn2, [fn3, arg1, arg2], fn4);

/braid/

    Package Sidebar

    Install

    npm i braid

    Weekly Downloads

    2

    Version

    0.0.1

    License

    none

    Last publish

    Collaborators

    • gordonb