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 / capitalizeWords
capitalizeWords(
input
):string
Capitalizes the first letter of each word in a sentence.
• input: string
The input string where each word’s first letter will be capitalized.
string
The string with each word’s first letter capitalized.
const result = capitalizeWords("hello world");
console.log(result); // "Hello World"