lib/core.js
function configureFilters(config){
    if (typeof config.minPeakHeight !== 'number' || isNaN(config.minPeakHeight)){
      throw new TypeError('config.minPeakHeight should be a numeric value. Was: ' + String(config.minPeakHeight));
    }

    this.filters.push(function minHeightFilter(item){
      return item >= config.minPeakHeight;
    });
  }
function configureFilters(config){
    if (typeof config.minPeakHeight !== 'number' || isNaN(config.minPeakHeight)){
      throw new TypeError('config.minPeakHeight should be a numeric value. Was: ' + String(config.minPeakHeight));
    }

    this.filters.push(function minHeightFilter(item){
      return item >= config.minPeakHeight;
    });
  }
function configureFilters ( config ) { if ( typeof config . minPeakHeight !== 'number' || isNaN ( config . minPeakHeight ) ) { throw new TypeError ( 'config.minPeakHeight should be a numeric value. Was: ' + String ( config . minPeakHeight ) ) ; } this . filters . push ( function minHeightFilter ( item ) { return item >= config . minPeakHeight ; } ) ; }
Configures the internal filters of a slayer instance
Configures the internal filters of a slayer instance