MCPcopy Index your code
hub / github.com/nodejs/node / isEventTarget

Function isEventTarget

lib/internal/event_target.js:1098–1100  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

1096// It stands in its current implementation as a compromise.
1097// Ref: https://github.com/nodejs/node/pull/33661
1098function isEventTarget(obj) {
1099 return obj?.constructor?.[kIsEventTarget];
1100}
1101
1102function isNodeEventTarget(obj) {
1103 return obj?.constructor?.[kIsNodeEventTarget];

Callers 6

events.jsFile · 0.85
getEventListenersFunction · 0.85
listenerCountFunction · 0.85
addEventListenerMethod · 0.85
removeEventListenerMethod · 0.85
dispatchEventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…