MCPcopy Index your code
hub / github.com/Effect-TS/effect / unsafeFromNonEmptyArray

Function unsafeFromNonEmptyArray

packages/effect/src/Chunk.ts:398–399  ·  view source on GitHub ↗
(self: NonEmptyReadonlyArray<A>)

Source from the content-addressed store, hash-verified

396 * @category unsafe
397 */
398export const unsafeFromNonEmptyArray = <A>(self: NonEmptyReadonlyArray<A>): NonEmptyChunk<A> =>
399 unsafeFromArray(self) as any
400
401/**
402 * Gets an element unsafely, will throw on out of bounds

Callers 1

makeFunction · 0.85

Calls 1

unsafeFromArrayFunction · 0.85

Tested by

no test coverage detected