(value, max = 600)
| 57 | } |
| 58 | |
| 59 | function short(value, max = 600) { |
| 60 | if (value === undefined || value === null) return ""; |
| 61 | const text = typeof value === "string" ? value : JSON.stringify(value); |
| 62 | return text.length > max ? `${text.slice(0, max)}...` : text; |
| 63 | } |
| 64 | |
| 65 | function mask(value = "") { |
| 66 | value = String(value || ""); |
no outgoing calls
no test coverage detected