Names
FUNCTION
@skmtc/core 0.63.4capitalize
Capitalizes the first character of a string.
Signature
import { capitalize } from '@skmtc/core'
capitalize(str: string): stringParameters
str, string required
The string to capitalize
Example
capitalize('hello world'); // 'Hello world'
capitalize('API'); // 'API'
capitalize(''); // ''Returns
string
The string with the first character uppercased