Reducer
const result = [3, 1, 4, 1, 5, 9, 2]
.reducer()
.sumOf(item => item);
console.log(result);
// Output: 25Global Functions
reducerOf
const numbers = [3, 1, 4, 1, 5, 9, 2];
const numberReducer = reducerOf(numbers);
console.log(numberReducer.sumOf(item => item));
// Output: 25Static Functions
of
Class Functions
sumOf
min
max
maxBy
minBy
minOf
maxOf
minOfWith
maxOfWith
fold
foldRight
reduceIndexed
foldIndexed
reduce
reduceRightIndexed
foldRightIndexed
runningFold
runningReduce
runningFoldIndexed
runningReduceIndexed
Last updated