(text: string)
| 43 | } |
| 44 | |
| 45 | export function parseArray(text: string): string[] { |
| 46 | return text.replace(/\r/g, '') |
| 47 | .split('\n') |
| 48 | .map((s) => s.trim()) |
| 49 | .filter((s) => s); |
| 50 | } |
| 51 | |
| 52 | export function formatArray(arr: readonly string[]): string { |
| 53 | return arr.concat('').join('\n'); |
no outgoing calls
no test coverage detected