(s: string)
| 400 | export type WordStyle = (word: string) => string; |
| 401 | |
| 402 | export function firstUpperWordStyle(s: string): string { |
| 403 | assert(s.length > 0, "Cannot style an empty string"); |
| 404 | return s[0].toUpperCase() + s.slice(1).toLowerCase(); |
| 405 | } |
| 406 | |
| 407 | export function allUpperWordStyle(s: string): string { |
| 408 | return s.toUpperCase(); |
nothing calls this directly
no test coverage detected
searching dependent graphs…