how to check if a string includes all array elements [duplicate]
Solution 1:
You could try to use Array.prototype.every
to call your check function on every element.
var arr = ['lorem', 'ipsum', 'dolor'];
var str = 'lorem blue dolor sky ipsum';
console.log(arr.every(el => str.includes(el)));