MCPcopy Create free account
hub / github.com/arktypeio/arktype / liftArray

Function liftArray

ark/util/arrays.ts:198–199  ·  view source on GitHub ↗
(data: t)

Source from the content-addressed store, hash-verified

196 : t[]
197
198export const liftArray = <t>(data: t): liftArray<t> =>
199 (Array.isArray(data) ? data : [data]) as never
200
201/**
202 * Splits an array into two arrays based on the result of a predicate

Callers 5

parseSchema.tsFile · 0.90
configureRefsFunction · 0.90
isSimulatedFunction · 0.90
conflatenateFunction · 0.85
appendUniqueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected