Function
Static Public Summary | ||
public |
All. |
|
public |
Any. |
|
public |
Argmax. |
|
public |
Argmin. |
|
public |
Max. |
|
public |
Min. |
|
public |
Reduce. |
|
public |
Sum. |
Static Public
public all(a: ArrayLike, i: number, j: number): boolean source
import all from '@array-like/reduce/src/all.js'
All.
public any(a: ArrayLike, i: number, j: number): boolean source
import any from '@array-like/reduce/src/any.js'
Any.
public argmax(compare: Function, a: ArrayLike, i: number, j: number): number source
import argmax from '@array-like/reduce/src/argmax.js'
Argmax.
public argmin(compare: Function, a: ArrayLike, i: number, j: number): number source
import argmin from '@array-like/reduce/src/argmin.js'
Argmin.
public max(compare: Function, a: ArrayLike, i: number, j: number): any source
import max from '@array-like/reduce/src/max.js'
Max.
public min(compare: Function, a: ArrayLike, i: number, j: number): any source
import min from '@array-like/reduce/src/min.js'
Min.
public reduce(accumulator: Function, a: ArrayLike, i: number, j: number, initializer: any): any source
import reduce from '@array-like/reduce/src/reduce.js'
Reduce.
Applies the accumulator function iteratively on the last return value of the accumulator and the current value in the array. The initial last return value of the accumulator is the initializer parameter.