Immutable version of array reverse.
const source = [1, 2, 3];reverse(source) // [3, 2, 1] Copy
const source = [1, 2, 3];reverse(source) // [3, 2, 1]
The array to reverse.
A new array with the elements reversed.
Immutable version of array reverse.
Example