wordsArray = ['hello', 'to', 'nice', 'day'] yourString = 'Hello. Today is a nice day'.toLowerCase() result = wordsArray.every(w => yourString.includes(w)) console.log('result:', result)