MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / asArray

Function asArray

test/conductor/commandline.ts:14–22  ·  view source on GitHub ↗
(value?: string|string[])

Source from the content-addressed store, hash-verified

12}
13
14export function asArray(value?: string|string[]) {
15 if (!value) {
16 return [];
17 }
18 if (Array.isArray(value)) {
19 return value;
20 }
21 return [value];
22}
23
24function validateDiffBehaviors(args?: string|string[]) {
25 const failed = [];

Callers 2

test_config.tsFile · 0.70
validateDiffBehaviorsFunction · 0.70

Calls 1

isArrayMethod · 0.45

Tested by

no test coverage detected