@thinice/capitalize
v0.1.4
Published
Capitalizes the first letter of a string
Readme
@thinice/capitalize
Capitalizes the first letter of a string.
Installation
npm install @thinice/capitalizeUsage
import { capitalize } from "@thinice/capitalize";
capitalize("hello"); // "Hello"
capitalize("world"); // "World"
capitalize(""); // ""
capitalize("a"); // "A"
capitalize("Hello"); // "Hello" (already capitalized)Source
https://github.com/thinicejs/utils/tree/main/packages/capitalize
