MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / asArray

Function asArray

packages/shared/src/utils.ts:112–113  ·  view source on GitHub ↗
(value: T)

Source from the content-addressed store, hash-verified

110
111// TODO fix this in solid-primitives
112export const asArray = <T>(value: T): (T extends any[] ? T[number] : T)[] =>
113 Array.isArray(value) ? (value as any) : [value as any]
114
115export const isObject = (o: unknown): o is object => typeof o === 'object' && !!o
116

Callers 1

debugSignalsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…