MCPcopy
hub / github.com/darkreader/darkreader / multiline

Function multiline

tests/inject/support/test-utils.ts:3–11  ·  view source on GitHub ↗
(...lines: string[])

Source from the content-addressed store, hash-verified

1// Loaded with HTML/DOM only
2
3export 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
13export function timeout(delay: number): Promise<void> {
14 return new Promise<void>((resolve) => setTimeout(resolve, delay));

Callers 10

color.tests.tsFile · 0.90
fixes.tests.tsFile · 0.90
getSVGImageCSSFunction · 0.90
variables.tests.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected