Skip to content

capitalize

capitalize(target)

Capitalizes the first letter of target string.

ts
capitalize("hello world"); // "Hello world"
capitalize("hello"); // "Hello"
ts
pipe("hello world", capitalize()); // "Hello world"
pipe("hello", capitalize()); // "Hello"