Filter reverse

To use a filter on a variable in an expression, write the variable then put a | pipe symbol, then write the filter name:

array|reverse

This filter has some extra parameters that can be put after the name in brackets:

array|reverse(preserveKeys)

Description

Use this to reverse an array or a string.

Example

numbers = [1, 2, 3]
numbers = numbers|reverse    # [3, 2, 1]