Function: useUpperCase()
useUpperCase(
text,locale?):string
Defined in: src/core/services/formatter.service.ts:47
Pure: locale-aware upper case (trims whitespace).
Parameters
text
string
The string to transform.
locale?
Locale = "en"
BCP 47 locale tag. Defaults to "en".
Returns
string
The upper-cased, trimmed string.
Example
import { useUpperCase } from "katanakit-js";
useUpperCase("hello"); // "HELLO"
useUpperCase("straße", "de"); // "STRASSE"