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 / stringToArray
stringToArray(
input
):string
[]
Converts a string into an array of substrings, each with a maximum length of 99 characters.
• input: string
The input string to be split.
string
[]
An array of substrings, each up to 99 characters long.
const result = stringToArray("This is a very long string that needs to be split.");
console.log(result); // ["This", "is", "a", "very", "long", "string", "that", "needs", "to", "be", "split"]