Lodash _.forEachRight() Method
The Lodash _.forEachRight() method iterates over elements of collection from right to left. It is almost the same as the _.forEach() method.
_.forEachRight( collection, iteratee )
Parameters: This method accepts two parameters as mentioned above and described below:
- collection: This parameter holds the collection to iterate over.
- iteratee: It is the function that is invoked per iteration.
Return Value: This method returns the collection.
python java cpp c