I need to create condition in Vue for chcecking if array contains values.
items: { [1,5,8,12,63]}
<div v-for="item in items">
<div v-if="item == 1">
Yes
</div>
<div v-else>
No
</div>
</div>
And the output is: Yes, No, No, No, No .
I need to get only Yes and No one time. I need:
Yes, No.
[].includes(item) ? true : false