UNPKG

@infect/infect-rda-sample-storage

Version:

INFECT Sample Storage for RDA

21 lines (11 loc) 295 B
export default class Filter { constructor(comparators) { this.comparators = comparators; } debug() { this.debugMode = true; } applyToModel(model) { return this.comparators.every(comparator => comparator.match(model, this.debugMode)); } }