fivem-ts

a library to speed up the development of Fivem scripts and frameworks


Project maintained by Purpose-Dev Hosted on GitHub Pages — Theme by mattgraham

fivem-ts - Documentation v0.7.5Docs


fivem-ts - Documentation v0.7.5 / Shared / arrayToString

Function: arrayToString()

arrayToString(inputArray, separator): string

Joins an array of strings into a single string with an optional separator.

Parameters

inputArray: string[]

The array of strings to join.

separator: string = ''

The separator to use between each string. Defaults to an empty string.

Returns

string

The concatenated string.

Example

const result = arrayToString(["Hello", "World"], " ");
console.log(result); // "Hello World"

Defined in

shared/utils/FString.ts:30