MCPcopy Create free account
hub / github.com/Effect-TS/effect / ensure

Function ensure

packages/effect/src/Array.ts:335–335  ·  view source on GitHub ↗
(self: ReadonlyArray<A> | A)

Source from the content-addressed store, hash-verified

333 * @since 3.3.0
334 */
335export const ensure = <A>(self: ReadonlyArray<A> | A): Array<A> => Array.isArray(self) ? self : [self as A]
336
337/**
338 * Converts a record into an array of `[key, value]` tuples.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected