reverse.js 220 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 /** * Returns a copy of the array in reversed order. */ function reverse(array) { var copy = array.slice(); copy.reverse(); return copy; } module.exports = reverse;