utilsstringcapitalizeOn this pagecapitalize A function that converts the first character of a string to uppercase. Code 🔗 View source code Interface typescriptfunction capitalize<T extends string>(str: T): Capitalize<T> Usage typescriptimport { capitalize } from '@modern-kit/utils';capitalize('hello'); // 'Hello'capitalize('123'); // '123'