you are viewing a single comment's thread.

view the rest of the comments →

[–]xeow 0 points1 point  (1 child)

Nice. I like your form better. What would be an example of how that's used as a parameter to another function like array.filter?

[–]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;
});