@newdash/newdash
Version:
javascript/typescript utility library
14 lines (13 loc) • 620 B
TypeScript
export default composeArgs;
/**
* Creates an array that is the composition of partially applied arguments,
* placeholders, and provided arguments into a single array of arguments.
*
* @private
* @param {Array} args The provided arguments.
* @param {Array} partials The arguments to prepend to those provided.
* @param {Array} holders The `partials` placeholder indexes.
* @params {boolean} [isCurried] Specify composing for a curried function.
* @returns {Array} Returns the new array of composed arguments.
*/
declare function composeArgs(args: any[], partials: any[], holders: any[], isCurried: any): any[];