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
Partially apply a function by pre-filling some of its arguments and without changing the this context.
Installation
npm install util-partial --saveUsage
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); //=> 35Typings
Includes a TypeScript type definition.
License
MIT