(s: any, n: number)
| 24 | export const SESSION_MESSAGE_PAGE_SIZE = 8; |
| 25 | |
| 26 | export function short(s: any, n: number): string { |
| 27 | const text = String(s || ""); |
| 28 | return text.length > n ? text.slice(0, n - 1) + "…" : text; |
| 29 | } |
| 30 | |
| 31 | export function fmtInt(n: any): string { |
| 32 | const v = Number(n) || 0; |
no outgoing calls
no test coverage detected