source: node_modules/ramda/es/internal/_createPartialApplicator.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 307 bytes
Line 
1import _arity from "./_arity.js";
2import _curry2 from "./_curry2.js";
3export default function _createPartialApplicator(concat) {
4 return _curry2(function (fn, args) {
5 return _arity(Math.max(0, fn.length - args.length), function () {
6 return fn.apply(this, concat(args, arguments));
7 });
8 });
9}
Note: See TracBrowser for help on using the repository browser.