lib/eventStream.js
function() {
    for (var i = 0, len = this.events.length; i < len; i++) {
      if (this.events[i].streamRevision > this.lastRevision) {
        this.lastRevision = this.events[i].streamRevision;
      }
    }

    return this.lastRevision;
  }
function() {
    for (var i = 0, len = this.events.length; i < len; i++) {
      if (this.events[i].streamRevision > this.lastRevision) {
        this.lastRevision = this.events[i].streamRevision;
      }
    }

    return this.lastRevision;
  }
function ( ) { for ( var i = 0 , len = this . events . length ; i < len ; i ++ ) { if ( this . events [ i ] . streamRevision > this . lastRevision ) { this . lastRevision = this . events [ i ] . streamRevision ; } } return this . lastRevision ; }
This helper function calculates and returns the current stream revision.
@returns {Number} lastRevision
This helper function calculates and returns the current stream revision .