|
|
|
@ -52,7 +52,7 @@ export declare function each<T>(collection: T, iteratee?: any, thisArg?: any): T
|
|
|
|
|
|
|
|
|
|
export declare function map<T, U>(collection: T[] | object | string | null | undefined, callback?: ((index: number, value: T) => U) | object | string, thisArg?: any): U[]; |
|
|
|
|
|
|
|
|
|
export declare function reduce<T, U>(collection: T[] | object | string, callback?: ((total: U extends T ? U : T, currentValue: T, currentIndex: number) => U extends T ? U : T) | object | string, initialValue?: U | T): U extends T ? U : T; |
|
|
|
|
export declare function reduce<T, U>(collection: T[] | object | string, callback?: ((currentValue: T, total: U extends T ? U : T, currentIndex: number) => U extends T ? U : T) | object | string, initialValue?: U | T): U extends T ? U : T; |
|
|
|
|
|
|
|
|
|
export declare function reduceRight<T, U>(collection: T[] | object | string, callback?: ((total: U extends T ? U : T, currentValue: T, currentIndex: number) => U extends T ? U : T) | object | string, initialValue?: U | T): U extends T ? U : T; |
|
|
|
|
|
|
|
|
|