foldRight()
Collapses elements in the array, traversing right to left, give a reducer.
Description
The foldRight()
method collapses elements in the array, traversing right to
left, using the reducer function.
The source array isn’t changed.
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
seed |
Yes |
Initial state value provided to the reducer Function. |
|
reducer |
Yes |
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!