MCPcopy Index your code
hub / github.com/refined-github/refined-github / castArray

Function castArray

source/feature-manager.tsx:152–154  ·  view source on GitHub ↗
(value: Arrayable<Item>)

Source from the content-addressed store, hash-verified

150});
151
152function castArray<Item>(value: Arrayable<Item>): Item[] {
153 return Array.isArray(value) ? value : [value];
154}
155
156async function add(url: string, ...loaders: FeatureLoader[]): Promise<void> {
157 const id = getFeatureId(url);

Callers 1

addFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected