(str: string | null, length: number)
| 62 | } |
| 63 | |
| 64 | export const truncate = (str: string | null, length: number) => { |
| 65 | if (!str || str.length <= length) return str; |
| 66 | return `${str.slice(0, length - 3)}...`; |
| 67 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected