reduceRight() method applies a reducer Function to each
Set element, from right to left, by passing the reducer value
returned from the previous iteration and the next Set element
as parameters. The result of the last calculation is the value returned
by the method.
reduceRight() starts with the last value in the array, passing the last
and second to last set values on the first call.
the calling set isn’t changed.
Result of the last reducer calculation.
Reduce the Set elements, right to left:
Is this article helpful?
Tell Fauna how the article can be improved:
Thank you for your feedback!