Skip to content

Commit

Permalink
Update operator.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
santialbo authored Feb 8, 2024
1 parent f3f4de3 commit 134d69a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/operator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const defaultOperators: Operators = {
},
'contains': (l: any, r: any) => {
l = toValue(l)
return l && isFunction(l.some) ? l.some(i => equal(i, r)) : false;
return l && isFunction(l.some) ? l.some(i => equal(i, r)) : false
},
'not': (v: any, ctx: Context) => isFalsy(toValue(v), ctx),
'and': (l: any, r: any, ctx: Context) => isTruthy(toValue(l), ctx) && isTruthy(toValue(r), ctx),
Expand Down

0 comments on commit 134d69a

Please sign in to comment.