Join-events
Join events stream compatible with Event Emitter-like APIs... use it when you don't have access to something like RxJS/BaconJS.
NPM
npm i join-events -S
Usage
const eventEmitter = ;const join = ; // join(eventEmitter, ...eventNames, f(...lastValues)); eventEmitter; // do nothing because `event2` was never triggeredeventEmitter; // will log (true, false)eventEmitter; // will log (true, true)eventEmitter; // will log (true, [1, 2, 3])eventEmitter; // will log (true, [1, 2, 3])