Skip to content

$arrayConcat

$arrayConcat will concat multiple arrays.

Usage

$arrayConcat[separator;...arrays]

Parameters

FieldTypeDescriptionRequired
separatorstringSeparator.true
…arraysstringName of the array.true

Example(s)

This will return This is a test as it concats array 1 and 2:

1
client.command({
2
name: "arrayConcat",
3
code: `
4
$arrayConcat[ ;array1;array2]
5
$createArray[array1;This is]
6
$createArray[array2;a test]
7
`
8
});