Workshop › Typing Rain › Step 10 of 33
A word that falls past the ground is removed from the list. filter keeps only the words still above it.
```js
words = words.filter((w) => w.y <= GROUND)
```filter calls the arrow function for every word and keeps those for which it is true: the words at or above
the ground. The result replaces the list.In update, under the for line, write the filter line.
Skills: Arrays and objects
← Let it rain Lock on to a word →