I see this all the time:
Parrot.prototype.__proto__ = EventEmitter.prototype;
With this, each time you construct a new parrot, it can squawk.
However, supposing I construct an object with functions and don't intend to create multiple instances:
var parrot = {
  squawk: function(whatYouSaid){
    this.emit("SQUAWK!!!!", whatYouSaid);
  }
}
How would I make this extend EventEmitter? I tried this, and it didn't work:
_.extend(parrot, (new EventEmitter()));
 
     
    