(s: string, target: number)
| 27 | |
| 28 | /** Like `String.prototype.padEnd` but counts visible chars only. */ |
| 29 | export function padEndVisible(s: string, target: number): string { |
| 30 | const overhead = s.length - visibleLength(s); |
| 31 | return s.padEnd(target + overhead); |
| 32 | } |
no test coverage detected