MCPcopy Create free account
hub / github.com/ember-cli/ember-cli / isEventEmitterCompatible

Function isEventEmitterCompatible

lib/utilities/will-interrupt-process.js:197–207  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

195}
196
197function isEventEmitterCompatible(obj) {
198 return (
199 Boolean(obj) &&
200 typeof obj === 'object' &&
201 typeof obj.on === 'function' &&
202 typeof obj.emit === 'function' &&
203 typeof obj.removeListener === 'function' &&
204 typeof obj.setMaxListeners === 'function' &&
205 typeof obj.exit === 'function'
206 );
207}

Callers 1

captureFunction · 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…