reduceRight()
Apply a reducer Function to each set element, from right to left, to get a single value.
Description
The 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.
The calling Set isn’t changed.
Examples
Reduce the Set elements, right to left:
6
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!