* Capitalize the first character of a string. Used for the "With"-prefix * form on the first selector keyword when the Swift declaration has an * explicit first-parameter label (e.g. `func play(song:)` → `playWithSong:`).
(s: string)
| 40 | * explicit first-parameter label (e.g. `func play(song:)` → `playWithSong:`). |
| 41 | */ |
| 42 | function capFirst(s: string): string { |
| 43 | return s.length > 0 ? s.charAt(0).toUpperCase() + s.slice(1) : s; |
| 44 | } |
| 45 | |
| 46 | /** |
| 47 | * Lowercase the first character. Used in reverse: `setName:` setter ↔ |
no outgoing calls
no test coverage detected