(size: string)
| 106 | } |
| 107 | |
| 108 | export function sizeToCSS(size: string): string { |
| 109 | if (isNumeric(size)) { |
| 110 | return `${size}px`; |
| 111 | } else { |
| 112 | return 'auto'; |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | export function getNameInitials(name: string): string { |
| 117 | const nameParts = splitStr(name.trim(), ' '); |
no test coverage detected