Capitalize first letter of string
Capitalize the first letter of a string
If just showing on a website, may be easier to use text-transform: capitalize
const capitalize = (s) => {
return s.charAt(0).toUpperCase() + s.slice(1)
}
If just showing on a website, may be easier to use text-transform: capitalize
const capitalize = (s) => {
return s.charAt(0).toUpperCase() + s.slice(1)
}