UNPKG

@newdash/newdash

Version:

javascript/typescript utility library

20 lines (19 loc) 1.02 kB
export default createRecurry; /** * Creates a function that wraps `func` to continue currying. * * @private * @param {Function} func The function to wrap. * @param {number} bitmask The bitmask flags. See `createWrap` for more details. * @param {Function} wrapFunc The function to create the `func` wrapper. * @param {*} placeholder The placeholder value. * @param {*} [thisArg] The `this` binding of `func`. * @param {Array} [partials] The arguments to prepend to those provided to * the new function. * @param {Array} [holders] The `partials` placeholder indexes. * @param {Array} [argPos] The argument positions of the new function. * @param {number} [ary] The arity cap of `func`. * @param {number} [arity] The arity of `func`. * @returns {Function} Returns the new wrapped function. */ declare function createRecurry(func: Function, bitmask: number, wrapFunc: Function, placeholder: any, thisArg?: any, partials?: any[], holders?: any[], argPos?: any[], ary?: number, arity?: number): Function;