swc/crates/swc_bundler/tests/.cache/deno/6a399f1a72481940ab22e9c8c25afd7bca926e1d.ts
2021-11-09 20:42:49 +09:00

15 lines
403 B
TypeScript

// Loaded from https://deno.land/x/ramda@v0.27.2/source/internal/_createPartialApplicator.js
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));
});
});
}