(str: string, maxLength: number)
| 49 | } |
| 50 | |
| 51 | export function addEllipsis(str: string, maxLength: number): string { |
| 52 | if (str.length > maxLength) { |
| 53 | return str.substr(0, maxLength).trim() + '...' |
| 54 | } |
| 55 | return str |
| 56 | } |
no outgoing calls
no test coverage detected