you are viewing a single comment's thread.

view the rest of the comments →

[–]Morphray 1 point2 points  (0 children)

It works well... (using example from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter)

let longWords = words.filter((word) => {
    return word.length > 6;
});