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