(str: Maybe<string>)
| 5 | .replace(/-([a-z])/g, (g: string) => g[1].toUpperCase()) |
| 6 | |
| 7 | export const nonEmpty = (str: Maybe<string>): str is string => isDefined(str) && str.trim().length > 0 |
| 8 | |
| 9 | export const fallback = (value: Maybe<string>, fallback: string): string => nonEmpty(value) ? value : fallback |
| 10 |