@newdash/newdash
Version:
javascript/typescript utility library
14 lines (13 loc) • 550 B
TypeScript
/**
* Gets the appropriate "iteratee" function. If `iteratee` is customized,
* this function returns the custom method, otherwise it returns `baseIteratee`.
* If arguments are provided, the chosen function is invoked with them and
* its result is returned.
*
* @private
* @param {*} [value] The value to convert to an iteratee.
* @param {number} [arity] The arity of the created iteratee.
* @returns {Function} Returns the chosen function or its result.
*/
export function getIteratee(...args: any[]): Function;
export default getIteratee;