Let's say i have an object like this:

```
likedFoods:{
  pizza:true,
  pasta:false,
  steak:true,
  salad:false
}

```

And i want to filter out the falses and convert it into a string array like so:

```
compiledLikedFoods = ["pizza", "steak"]

```

What would be the best way to do it that isn't simply:

```
if (this.likedFoods.pizza == true) {this.compiledLikedFoods.push('pizza')};
if (this.likedFoods.pasta == true) {this.compiledLikedFoods.push('pasta')}'
if (this.likedFoods.steak == true) {this.compiledLikedFoods.push('steak')}'
if (this.likedFoods.salad == true) {this.compiledLikedFoods.push('salad')}'

```

(if there is one)

Thanks.