MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / isEvent

Function isEvent

packages/core/src/utils/is.ts:129–131  ·  view source on GitHub ↗
(wat: unknown)

Source from the content-addressed store, hash-verified

127 * @returns A boolean representing the result.
128 */
129export function isEvent(wat: unknown): wat is PolymorphicEvent {
130 return typeof Event !== 'undefined' && isInstanceOf(wat, Event);
131}
132
133/**
134 * Checks whether given value's type is an Element instance

Callers 4

convertToPlainObjectFunction · 0.90
eventFromPlainObjectFunction · 0.85
eventFromUnknownInputFunction · 0.85

Calls 1

isInstanceOfFunction · 0.85

Tested by

no test coverage detected