(obj)
| 195 | } |
| 196 | |
| 197 | function 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 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…