[SalesForce] a array contains a string or not with Expression in Lightning Component

With expression, I want to know that whether a string is contained in a array or not.

case code is here.

Is there any way to fix it or a workaround?

Best Answer

Not possible in an expression.

You'll want to use another component in the iteration. In that component you can use JavaScript for that logic.