Mini Linter Part 3 help

I would love to know why this code does not properly filter out the unnecessary words from the story.
Thanks!

let betterWords = storyWords.filter(word => {
    for(let i = 0; i < unnecessaryWords.length; i++){
        if (word !== unnecessaryWords[i]){
        return word;
        }
    }
})

A for loop is not the device to return anything from unless your explicit intent is to cease iteration. Moreover is the purpose of a filter iterator which has a built in for loop. We have only to provide the callback with a condition, and the filter will do its work and return an array of the values that meet it. Don’t clutter up a filter callback with logic. It’s just wrong.