I get this error : "TypeError: _vm.in_array is not a function" when I use in_array() function.
Is there any similar function like in_array() in Vue.js?
I want to do something like this and the result should display abc.
<template v-if="in_array(number,list)">
<h3> abc </h3>
</template>
<script>
data() {
return {
list: [1,2,3],
}
},
</script>