MCPcopy Create free account
hub / github.com/ChromeDevTools/chrome-devtools-mcp / extractStringArray

Function extractStringArray

tests/run-tests.ts:428–433  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

426}
427
428function extractStringArray(value: unknown): string[] {
429 if (!Array.isArray(value)) {
430 return [];
431 }
432 return value.filter((item): item is string => typeof item === 'string');
433}
434
435async function main(): Promise<void> {
436 const callerCwd = process.cwd();

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected