UNPKG

@newdash/newdash

Version:

javascript/typescript utility library

22 lines (21 loc) 1.18 kB
export default createHybrid; /** * Creates a function that wraps `func` to invoke it with optional `this` * binding of `thisArg`, partial application, and currying. * * @private * @param {Function|string} func The function or method name to wrap. * @param {number} bitmask The bitmask flags. See `createWrap` for more details. * @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} [partialsRight] The arguments to append to those provided * to the new function. * @param {Array} [holdersRight] The `partialsRight` 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 createHybrid(func: Function | string, bitmask: number, thisArg?: any, partials?: any[], holders?: any[], partialsRight?: any[], holdersRight?: any[], argPos?: any[], ary?: number, arity?: number): Function;