MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / asArray

Function asArray

src/cm/lsp/clientManager.ts:59–62  ·  view source on GitHub ↗
(value: T | T[] | null | undefined)

Source from the content-addressed store, hash-verified

57});
58
59function asArray<T>(value: T | T[] | null | undefined): T[] {
60 if (!value) return [];
61 return Array.isArray(value) ? value : [value];
62}
63
64function pluginKey(
65 serverId: string,

Callers 2

getExtensionsForFileMethod · 0.85
#initializeClientMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected