swc/bundler/tests/.cache/deno/6a399f1a72481940ab22e9c8c25afd7bca926e1d.ts
강동윤 bbaf619f63
fix(bundler): Fix bugs (#1437)
swc_bundler:
 - [x] Fix wrapped esms. (denoland/deno#9307)
 - [x] Make test secure.
2021-03-02 17:33:03 +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));
});
});
}