(string)
| 4 | * @return {str} |
| 5 | */ |
| 6 | export const ucfirst = (string) => { |
| 7 | if (!string) { |
| 8 | return ''; |
| 9 | } |
| 10 | |
| 11 | return string.charAt(0).toUpperCase() + string.slice(1); |
| 12 | }; |
| 13 | |
| 14 | /** |
| 15 | * Uppercase the first letter in a string |
no outgoing calls
no test coverage detected