Workshop › Asteroids › Step 15 of 41
Bullets wrap, so they never leave the screen and cannot just be removed there. Instead each one's life counts down, and
at 0 it is dropped: filter keeps only the bullets that still have life.
```js
bullet.life -= 1
bullets = bullets.filter((bullet) => bullet.life > 0)
```filter builds a new list with only the bullets whose life is above 0, and we put it in bullets.bullet.life -= 1.} write the filter line.Skills: Arrays and objects