MCPcopy Index your code
hub / github.com/codeaashu/claude-code / toArray

Function toArray

src/utils/shell/specPrefix.ts:36–36  ·  view source on GitHub ↗
(val: T | T[])

Source from the content-addressed store, hash-verified

34}
35
36const toArray = <T>(val: T | T[]): T[] => (Array.isArray(val) ? val : [val])
37
38// Check if an argument matches a known subcommand (case-insensitive: PS
39// callers pass original-cased args; fig spec names are lowercase)

Callers 3

buildPrefixFunction · 0.70
calculateDepthFunction · 0.70
shouldStopAtArgFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected