lib/definitions/aggregate.js
function (meta, fn) {
    if (!_.isObject(meta) || meta.version === undefined || meta.version === null || !_.isNumber(meta.version)) {
      throw new Error('Please pass in a version');
    }

    if (!fn) {
      this.snapshotIgnores[meta.version] = function () {
        return true;
      };
      return this;
    }

    if (_.isBoolean(fn)) {
      this.snapshotIgnores[meta.version] = function () {
        return fn;
      };
      return this;
    }

    this.snapshotIgnores[meta.version] = fn;
    return this;
  }
function (meta, fn) {
    if (!_.isObject(meta) || meta.version === undefined || meta.version === null || !_.isNumber(meta.version)) {
      throw new Error('Please pass in a version');
    }

    if (!fn) {
      this.snapshotIgnores[meta.version] = function () {
        return true;
      };
      return this;
    }

    if (_.isBoolean(fn)) {
      this.snapshotIgnores[meta.version] = function () {
        return fn;
      };
      return this;
    }

    this.snapshotIgnores[meta.version] = fn;
    return this;
  }
function ( meta , fn ) { if ( ! _ . isObject ( meta ) || meta . version === undefined || meta . version === null || ! _ . isNumber ( meta . version ) ) { throw new Error ( 'Please pass in a version' ) ; } if ( ! fn ) { this . snapshotIgnores [ meta . version ] = function ( ) { return true ; } ; return this ; } if ( _ . isBoolean ( fn ) ) { this . snapshotIgnores [ meta . version ] = function ( ) { return fn ; } ; return this ; } this . snapshotIgnores [ meta . version ] = fn ; return this ; }
Defines a if a snapshot should be ignored. -> if true it will loads all events
@param {Object}   meta Meta infos like: { version: 10 }
@param {Function} fn   Function containing the check function [optional], default return true
`function(snapshotData){ return true; }`
@returns {Aggregate}
Defines a if a snapshot should be ignored . - > if true it will loads all events