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 / capitalizeFirstLetter

Function: capitalizeFirstLetter()

capitalizeFirstLetter(input): string

Capitalizes the first letter of a string.

Parameters

input: string

The string to capitalize the first letter of.

Returns

string

The string with its first letter capitalized.

Example

const result = capitalizeFirstLetter("hello");
console.log(result); // "Hello"

Defined in

shared/utils/FString.ts:177