Workshop › Typing Rain › Step 15 of 33
If the target falls past the ground while you are typing it, the lock must be released; otherwise you would stay locked on to a word that is gone.
```js
const landed = words.filter((w) => w.y > GROUND)
words = words.filter((w) => w.y <= GROUND)
if (landed.includes(target)) target = null
```landed collects the words below the ground, before they are removed.includes(target) is true if the target is one of them; then the lock is released.In update, write the landed line above the filter line and the includes line under it.
Skills: Game states
← Half a word in yellow Lives →