Skip to content

@lang:reverse

Reverse the order of an array's elements.

Returns: array

@lang:reverse(arr)
NameTypeDescription
arrarraySource array
  • @sort — sort by comparator

Reverse a typed array without changing its elements or their types. Both single-word and multiword elements are supported.