This repository has been archived on 2024-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
p61-project/utils/strings.ts

4 lines
116 B
TypeScript

export const capitalize = (string: string): string => {
return string.charAt(0).toUpperCase() + string.slice(1)
}