Function: useCapitalize()
useCapitalize(
text,locale?):string
Defined in: src/core/services/formatter.service.ts:83
Pure: capitalizes the first character; leaves the rest unchanged.
Parameters
text
string
The string to capitalize.
locale?
Locale = "en"
BCP 47 locale tag. Defaults to "en".
Returns
string
The string with its first character upper-cased.
Example
import { useCapitalize } from "katanakit-js";
useCapitalize("hello world"); // "Hello world"