Uppercase the first character, leaving the rest untouched. Empty strings pass through.
capitalize("order") // "Order" capitalize("iPhone") // "IPhone" Copy
capitalize("order") // "Order" capitalize("iPhone") // "IPhone"
Uppercase the first character, leaving the rest untouched. Empty strings pass through.