(self: string)
| 1058 | * @since 2.0.0 |
| 1059 | */ |
| 1060 | export const snakeToPascal = (self: string): string => { |
| 1061 | if (self.length === 0) return self |
| 1062 | let str = self[0].toUpperCase() |
| 1063 | for (let i = 1; i < self.length; i++) { |
| 1064 | str += self[i] === "_" ? self[++i].toUpperCase() : self[i] |
| 1065 | } |
| 1066 | return str |
| 1067 | } |
| 1068 | |
| 1069 | /** |
| 1070 | * Converts a snake_case string to kebab-case. |
nothing calls this directly
no outgoing calls
no test coverage detected