Skip to main content
Module

x/ramda/internal/_createPartialApplicator.js

:ram: Practical functional Javascript
Very Popular
Go to Latest
File
import _arity from './_arity';import _curry2 from './_curry2';

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)); }); });}