We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ac00ea commit 1b9968eCopy full SHA for 1b9968e
src/condition.js
@@ -10,7 +10,7 @@ export default class Condition {
10
Object.assign(this, properties)
11
if (booleanOperator) {
12
let subConditions = properties[booleanOperator]
13
- if (!(subConditions instanceof Array)) {
+ if (!(Array.isArray(subConditions))) {
14
throw new Error(`"${booleanOperator}" must be an array`)
15
}
16
this.operator = booleanOperator
0 commit comments