strings.joinStr() function

The strings.joinStr() function concatenates elements of a string array into a single string using a specified separator.

*Output data type: String*

  1. import "strings"
  2. strings.joinStr(arr: ["a", "b", "c"], v: ",")
  3. // returns "a,b,c"

Parameters

arr

The array of strings to concatenate.

*Data type: Array of strings*

v

The separator to use in the concatenated value.

*Data type: String*

Examples

Join a list of strings into a single string
  1. import "strings"
  2. searchTags = ["tag1", "tag2", "tag3"]
  3. strings.joinStr(arr: searchTags, v: ","))