Update snippet descriptions
This commit is contained in:
@ -5,7 +5,8 @@ tags: array,intermediate
|
||||
|
||||
Executes a provided function once for each array element, starting from the array's last element.
|
||||
|
||||
- Use `Array.prototype.slice()` to clone the given array, `Array.prototype.reverse()` to reverse it and `Array.prototype.forEach()` to iterate over the reversed array.
|
||||
- Use `Array.prototype.slice()` to clone the given array and `Array.prototype.reverse()` to reverse it.
|
||||
- Use `Array.prototype.forEach()` to iterate over the reversed array.
|
||||
|
||||
```js
|
||||
const forEachRight = (arr, callback) =>
|
||||
|
||||
Reference in New Issue
Block a user