(string: string, limit: number = 100)
| 31 | } |
| 32 | |
| 33 | export function truncate(string: string, limit: number = 100) { |
| 34 | if (!string) return string |
| 35 | if (string.length < limit) return string |
| 36 | |
| 37 | return string.slice(0, limit - 3) + '...' |
| 38 | } |
| 39 | |
| 40 | type StreamInfo = { |
| 41 | resolution: { width: number; height: number } |
no outgoing calls
no test coverage detected