screen_rotation
Copied to Clipboard
<!DOCTYPE html> <html> <head> <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> </head> <body> <div id="app"> <h3>Vue Js Check Array Value Exist or Not</h3> <p v-if="myArray.includes('Vue')">Value exists in the array</p> <p v-else>Value does not exist in the array</p> </div> <script> new Vue({ el: '#app', data() { return { myArray:['Vue','React','Node','Next'] }; } }); </script> </body> </html>