diff --git a/src/render/operator.ts b/src/render/operator.ts index 048eb97007..66237c180c 100644 --- a/src/render/operator.ts +++ b/src/render/operator.ts @@ -34,8 +34,7 @@ export const defaultOperators: Operators = { }, 'contains': (l: any, r: any) => { l = toValue(l) - r = toValue(r) - return l && isFunction(l.indexOf) ? l.indexOf(r) > -1 : 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),