mirror of
https://github.com/swc-project/swc.git
synced 2024-12-30 17:15:11 +03:00
bbaf619f63
swc_bundler: - [x] Fix wrapped esms. (denoland/deno#9307) - [x] Make test secure.
15 lines
403 B
TypeScript
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));
|
|
});
|
|
});
|
|
}
|