MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / toArray

Function toArray

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

Source from the content-addressed store, hash-verified

14])
15
16const toArray = <T>(val: T | T[]): T[] => (Array.isArray(val) ? val : [val])
17
18// Check if args[0] matches a known subcommand (disambiguates wrapper commands
19// 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