JSPM

util-partial

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 31
  • Score
    100M100P100Q9234F
  • License MIT

A functional utility for doing partial application.

Package Exports

  • util-partial

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (util-partial) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Partial

NPM version Build status Test coverage Gittip

Partially apply a function by pre-filling a number of its arguments and without changing its this value.

Installation

npm install util-partial --save

Usage

var partial = require('util-partial');

var add = function (a, b) {
  return a + b;
};

var add5 = partial(add, 5);

add5(10); //=> 15
add5(20); //=> 25
add5(30); //=> 35

License

MIT