Vuejs - Periksa string termasuk dalam Vuejs

const string = "foo";
const substring = "oo";

console.log(string.includes(substring)); // true
 Run code snippet
Angry Albatross