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

Function toArray

src/utils/bash/prefix.ts:14–14  ·  view source on GitHub ↗
(val: T | T[])

Source from the content-addressed store, hash-verified

12])
13
14const toArray = <T>(val: T | T[]): T[] => (Array.isArray(val) ? val : [val])
15
16// Check if args[0] matches a known subcommand (disambiguates wrapper commands
17// that also have subcommands, e.g. the git spec has isCommand args for aliases).

Callers 4

getCommandPrefixStaticFunction · 0.70
handleWrapperFunction · 0.70
processUserInputBaseFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected