(self: T)
| 204 | * @since 2.0.0 |
| 205 | */ |
| 206 | export const capitalize = <T extends string>(self: T): Capitalize<T> => { |
| 207 | if (self.length === 0) return self as Capitalize<T> |
| 208 | |
| 209 | return (toUpperCase(self[0]) + self.slice(1)) as Capitalize<T> |
| 210 | } |
| 211 | |
| 212 | /** |
| 213 | * Uncapitalizes the first character of a string. |
nothing calls this directly
no test coverage detected