src code

instance method Array#reverse

Array#reverse([inline = false]) → Array
  • inline (Boolean) – Whether to modify the array in place. If false, clones the original array first.

Returns the reversed version of the array.