Files
30-seconds-of-code/test/forEachRight/forEachRight.js
2018-01-09 06:09:49 -05:00

5 lines
80 B
JavaScript

module.exports = (arr, callback) =>
arr
.slice(0)
.reverse()
.forEach(callback);