The iterable function. Receives four values, the accumulator, the current element from the array, its index, and the original array.
The accumulator value.
The final, accumulated value.
Returns a single item by iterating through the list, successively calling the iterable function. reduceWhile also takes a predicate that is evaluated before each step. If the predicate returns false, it "short-circuits" the iteration and returns the current value of the accumulator.
Note: if arr is undefined or null, acc will be returned by reference immediately
The iterable function. Receives four values, the accumulator, the current element from the array, its index, and the original array.
The accumulator value.
The final, accumulated value.
Returns a single item by iterating through the list, successively calling the iterable function. reduceWhile also takes a predicate that is evaluated before each step. If the predicate returns false, it "short-circuits" the iteration and returns the current value of the accumulator.
Note: if arr is undefined or null, acc will be returned by reference immediately
The iterable function. Receives four values, the accumulator, the current element from the array, its index, and the original array.
The final, accumulated value.
Returns a single item by iterating through the list, successively calling the iterable function. reduceWhile also takes a predicate that is evaluated before each step. If the predicate returns false, it "short-circuits" the iteration and returns the current value of the accumulator.
Note: if arr is undefined or null, acc will be returned by reference immediately
The final, accumulated value.
Generated using TypeDoc
Returns a single item by iterating through the list, successively calling the iterable function. reduceWhile also takes a predicate that is evaluated before each step. If the predicate returns false, it "short-circuits" the iteration and returns the current value of the accumulator.
Note: if
arris undefined or null,accwill be returned by reference immediately