🎃
1つの文字列に、配列の文字列が全て含まれているか
Answer
var str = "apple_mango_banana";
var arr = ["apple", "banana"];
var isEvery = arr.every((item) => str.includes(item));
console.log(isEvery);
Refs
var str = "apple_mango_banana";
var arr = ["apple", "banana"];
var isEvery = arr.every((item) => str.includes(item));
console.log(isEvery);
Discussion