Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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 */
30
export
const
isNonEmpty = <A>(a: A | ReadonlyArray<A> | undefined): a is A | NonEmptyReadonlyArray<A> =>
31
a !== undefined && !(Array.isArray(a) && a.length === 0)
Callers
2
layer
Function · 0.50
layer
Function · 0.50
Calls
no outgoing calls
Tested by
no test coverage detected