Skip to content
Lists & Helpers arrayReverse

$arrayReverse — Reverses an array; stores the result in another array or returns JSON.

Reverses an array; stores the result in another array or returns JSON.

Syntax

$arrayReverse[array;(other)]

Parameters

  • array (text, required) — Name of the array.
  • other (text, optional) — Array that receives the result.

Return Value

  • string.

Usage

$arrayReverse[a] → ["2","1","3"]

Example

$arrayLoad[a;,;3,1,2]
$sendMessage[$arrayReverse[a]]

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.