a library to speed up the development of Fivem scripts and frameworks
fivem-ts - Documentation v0.7.5 • Docs
fivem-ts - Documentation v0.7.5 / Shared / arrayToString
arrayToString(
inputArray
,separator
):string
Joins an array of strings into a single string with an optional separator.
• inputArray: string
[]
The array of strings to join.
• separator: string
= ''
The separator to use between each string. Defaults to an empty string.
string
The concatenated string.
const result = arrayToString(["Hello", "World"], " ");
console.log(result); // "Hello World"