(str: string)
| 18 | * @example capitalize('hello world') → 'Hello world' |
| 19 | */ |
| 20 | export function capitalize(str: string): string { |
| 21 | return str.charAt(0).toUpperCase() + str.slice(1) |
| 22 | } |
| 23 | |
| 24 | /** |
| 25 | * Returns the singular or plural form of a word based on count. |
no outgoing calls
no test coverage detected