We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4f59f34 + 1b9968e commit 5a2723fCopy full SHA for 5a2723f
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