lib/eventStream.js
function(events) {
    if (!_.isArray(events)) {
      var errEvtsArrMsg = 'events should be an array!';
      debug(errEvtsArrMsg);
      throw new Error(errEvtsArrMsg);
    }
    var self = this;
    _.each(events, function(evt) {
      self.addEvent(evt);
    });
  }
function(events) {
    if (!_.isArray(events)) {
      var errEvtsArrMsg = 'events should be an array!';
      debug(errEvtsArrMsg);
      throw new Error(errEvtsArrMsg);
    }
    var self = this;
    _.each(events, function(evt) {
      self.addEvent(evt);
    });
  }
function ( events ) { if ( ! _ . isArray ( events ) ) { var errEvtsArrMsg = 'events should be an array!' ; debug ( errEvtsArrMsg ) ; throw new Error ( errEvtsArrMsg ) ; } var self = this ; _ . each ( events , function ( evt ) { self . addEvent ( evt ) ; } ) ; }
adds an array of events to the uncommittedEvents array
@param {Array} events
adds an array of events to the uncommittedEvents array