( s: string = "", titleCase: boolean = true, redactingEmail: boolean = true )
| 44 | } |
| 45 | |
| 46 | export default function format( |
| 47 | s: string = "", |
| 48 | titleCase: boolean = true, |
| 49 | redactingEmail: boolean = true |
| 50 | ): string { |
| 51 | let _str = s || ""; |
| 52 | |
| 53 | if (titleCase) { |
| 54 | _str = toTitleCase(s); |
| 55 | } |
| 56 | |
| 57 | if (redactingEmail) { |
| 58 | _str = redactEmail(_str); |
| 59 | } |
| 60 | |
| 61 | return _str; |
| 62 | } |
no test coverage detected
searching dependent graphs…