Can .findIndex return ALL indexes of words that satisfy callbackfunc?

hi !

from the grammar checker project in the intro to java course chapter on iterators (https://www.codecademy.com/courses/introduction-to-javascript/projects/mini-linter) I was wondering if there was a way (built-in or manual) to get .findIndex to return ALL indexes of the words in an array that satisfied to its callbackfunc ? and return a distinct array of said indexes.

I tried manually something of the genre below (quite ugly, and in the case were there are several instances of a lengthy world returns only the index of the first instance encountered…):

const findAllIndexesWordTooLong = arr => {
return (arr.filter(word => word.length > 10)).map(word2=> arr.indexOf(word2));
};

const allIndexes = findAllIndexesWordTooLong;
console.log(allIndexes(storyWords));

thanks!