(datum: object)
| 163 | } |
| 164 | |
| 165 | run(datum: object) { |
| 166 | let accumulator = this.runGroup(datum, this.groups[0]); |
| 167 | for (let i = 1; i < this.groups.length; i++) { |
| 168 | const group = this.groups[i]; |
| 169 | switch (group.clause) { |
| 170 | case '&&': |
| 171 | accumulator = accumulator && this.runGroup(datum, group); |
| 172 | break; |
| 173 | case '||': |
| 174 | accumulator = accumulator || this.runGroup(datum, group); |
| 175 | break; |
| 176 | } |
| 177 | } |
| 178 | return accumulator; |
| 179 | } |
| 180 | } |