- reduce<T1, T2>(): Curried3<((acc, val, index?, arr?) => T2), T2, T1[], T2> | Curried3<((acc, val, key?, obj?) => T2), T2, Record<string, T1>, T2>
Returns Curried3<((acc, val, index?, arr?) => T2), T2, T1[], T2> | Curried3<((acc, val, key?, obj?) => T2), T2, Record<string, T1>, T2>
- reduce<T1, T2>(fn): Curried2<T2, T1[], T2>
Parameters
- fn: ((acc, val, index?, arr?) => T2)
- (acc, val, index?, arr?): T2
Parameters
- acc: T2
- val: T1
Optional
index: numberOptional
arr: T1[]
Returns T2
- reduce<T1, T2>(fn): Curried2<T2, Record<string, T1>, T2>
Parameters
- fn: ((acc, val, key?, obj?) => T2)
- (acc, val, key?, obj?): T2
Parameters
- acc: T2
- val: T1
Optional
key: stringOptional
obj: Record<string, T1>
Returns T2
Returns Curried2<T2, Record<string, T1>, T2>
- reduce<T1, T2>(fn, val): Curried1<T1[], T2>
Parameters
- fn: ((acc, val, index?, arr?) => T2)
- (acc, val, index?, arr?): T2
Parameters
- acc: T2
- val: T1
Optional
index: numberOptional
arr: T1[]
Returns T2
- val: T2
- reduce<T1, T2>(fn, val): Curried1<Record<string, T1>, T2>
Parameters
- fn: ((acc, val, key?, obj?) => T2)
- (acc, val, key?, obj?): T2
Parameters
- acc: T2
- val: T1
Optional
key: stringOptional
obj: Record<string, T1>
Returns T2
- val: T2
Returns Curried1<Record<string, T1>, T2>
- reduce<T1, T2>(fn, val, arr): T2
Parameters
- fn: ((acc, val, index?, arr?) => T2)
- (acc, val, index?, arr?): T2
Parameters
- acc: T2
- val: T1
Optional
index: numberOptional
arr: T1[]
Returns T2
- val: T2
- arr: T1[]
Returns T2
- reduce<T1, T2>(fn, val, obj): T2
Parameters
- fn: ((acc, val, key?, obj?) => T2)
- (acc, val, key?, obj?): T2
Parameters
- acc: T2
- val: T1
Optional
key: stringOptional
obj: Record<string, T1>
Returns T2
- val: T2
- obj: Record<string, T1>
Returns T2
Curried
_reduce