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

Function isNonEmpty

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

Source from the content-addressed store, hash-verified

1350 * @since 2.0.0
1351 */
1352export const isNonEmpty = <A>(self: Chunk<A>): self is NonEmptyChunk<A> => self.length > 0
1353
1354/**
1355 * Returns the first element of this chunk safely if it exists.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected