Skip to content

Commit 5a2723f

Browse files
authored
Merge pull request #128 from thegeorgeous/124-fix-instanceof
Use Array.isArray instead of instanceof
2 parents 4f59f34 + 1b9968e commit 5a2723f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/condition.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default class Condition {
1010
Object.assign(this, properties)
1111
if (booleanOperator) {
1212
let subConditions = properties[booleanOperator]
13-
if (!(subConditions instanceof Array)) {
13+
if (!(Array.isArray(subConditions))) {
1414
throw new Error(`"${booleanOperator}" must be an array`)
1515
}
1616
this.operator = booleanOperator

0 commit comments

Comments
 (0)