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

Function isNonEmpty

packages/opentelemetry/src/internal/utils.ts:30–31  ·  view source on GitHub ↗
(a: A | ReadonlyArray<A> | undefined)

Source from the content-addressed store, hash-verified

28
29/** @internal */
30export const isNonEmpty = <A>(a: A | ReadonlyArray<A> | undefined): a is A | NonEmptyReadonlyArray<A> =>
31 a !== undefined && !(Array.isArray(a) && a.length === 0)

Callers 2

layerFunction · 0.50
layerFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…