reverse

The reverse task reverses the order of the elements in an array. The first element becomes the last, and the last element becomes the first.

Potential use case

Use this task when you have a dataset and want to view the records in the opposite order.

Properties

IncomingTypeDescription
arrArrayRequired. The array to reverse.
OutgoingTypeDescription
reversedArrayArrayThe reversed array.

Example

The arr variable is set to ["1","2","3"].

reverse task — input

The result is ["3","2","1"].

reverse task — output