Réponse
storyWords.filter(word => {
return !unnecessaryWords.includes(word);
});
Colonne
Explication
There is an array of words that are unnecessary. Iterate over your array to filter out these words. Save the remaining words in an array called betterWords. There are several ways that you could achieve this. const betterWords = storyWords.filter(word => {
return !unnecessaryWords.includes(word);
});
Question
Iterate over the array StoryWords to filter out the words contained in unnecessaryWords
Thématique