MCPcopy
hub / github.com/getsentry/sentry / defined

Function defined

static/app/utils/defined.tsx:1–3  ·  view source on GitHub ↗
(item: T)

Source from the content-addressed store, hash-verified

1export function defined<T>(item: T): item is Exclude<T, null | undefined> {
2 return item !== undefined && item !== null;
3}

Callers 15

SubscriptionSummaryFunction · 0.90
DynamicSamplingFunction · 0.90
CustomerDetailsFunction · 0.90
OverlayFunction · 0.90
UserMiseryFunction · 0.90
ScoreCardFunction · 0.90
isMillisecondsFunction · 0.90
isNanosecondsFunction · 0.90
getBodyFunction · 0.90
QueryCountFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected