(...lines: string[])
| 1 | // Loaded with HTML/DOM only |
| 2 | |
| 3 | export function multiline(...lines: string[]): string { |
| 4 | if (lines.length < 1) { |
| 5 | return '\n'; |
| 6 | } |
| 7 | if (lines[lines.length - 1] !== '') { |
| 8 | lines.push(''); |
| 9 | } |
| 10 | return lines.join('\n'); |
| 11 | } |
| 12 | |
| 13 | export function timeout(delay: number): Promise<void> { |
| 14 | return new Promise<void>((resolve) => setTimeout(resolve, delay)); |
no outgoing calls
no test coverage detected