UNPKG
@infect/infect-rda-sample-storage
Version:
latest (4.8.0)
4.8.0
4.7.0
4.6.4
4.6.3
4.6.2
4.6.1
4.6.0
4.5.5
4.5.4
4.5.3
4.5.2
4.5.1
4.5.0
4.4.4
4.4.3
4.4.2
4.4.1
4.4.0
4.3.1
4.3.0
4.2.6
4.2.5
4.2.3
4.2.2
4.2.1
4.2.0
4.1.1
4.1.0
4.0.5
4.0.4
4.0.3
4.0.2
4.0.1
4.0.0
3.0.7
3.0.6
3.0.1
INFECT Sample Storage for RDA
@infect/infect-rda-sample-storage
/
compute-source-code
/
lib
/
Filter.js
21 lines
(11 loc)
•
295 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
)); } }