(value: string, count: number)
| 116 | } |
| 117 | |
| 118 | function takeTail(value: string, count: number): string { |
| 119 | if (count <= 0) return ""; |
| 120 | const characters = Array.from(value); |
| 121 | return characters.slice(Math.max(0, characters.length - count)).join(""); |
| 122 | } |
| 123 | |
| 124 | function splitBudget(maxCharacters: number): { head: number; tail: number } { |
| 125 | return { |
no outgoing calls
no test coverage detected