UNPKG

@newdash/newdash

Version:

javascript/typescript utility library

27 lines (26 loc) 559 B
/** * @ignore */ interface OverFunction { <T>(...args: T[]): Array<T>; (...args: any[]): Array<any>; } /** * Creates a function that invokes `iteratees` with the arguments it receives * and returns their results. * * @since 5.11.0 * @category Util * @param iteratees The iteratees to invoke. * @returns Returns the new function. * @example * * ```js * const func = over([Math.max, Math.min]) * * func(1, 2, 3, 4) * // => [4, 1] * ``` */ export declare function over(...iteratees: Array<Function>): OverFunction; export default over;