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

Function isSyntheticEvent

packages/react/src/isSyntheticEvent.ts:11–13  ·  view source on GitHub ↗
(wat: unknown)

Source from the content-addressed store, hash-verified

9 * and that's unusual for plain objects to all have at once.
10 */
11export function isSyntheticEvent(wat: unknown): boolean {
12 return isPlainObject(wat) && 'nativeEvent' in wat && 'preventDefault' in wat && 'stopPropagation' in wat;
13}

Callers 1

normalizeStringifyValueFunction · 0.90

Calls 1

isPlainObjectFunction · 0.90

Tested by

no test coverage detected