pnpm
Version:
Fast, disk space efficient package manager
10 lines (9 loc) • 308 B
JavaScript
import _arity from './_arity.js';
import _curry2 from './_curry2.js';
export default function _createPartialApplicator(concat) {
return _curry2(function (fn, args) {
return _arity(Math.max(0, fn.length - args.length), function () {
return fn.apply(this, concat(args, arguments));
});
});
}