Skip to content

Instantly share code, notes, and snippets.

@Thaekeh
Created December 2, 2020 11:38
Show Gist options
  • Save Thaekeh/1cc33ade562e4e208b75cef40f2c2a48 to your computer and use it in GitHub Desktop.
Save Thaekeh/1cc33ade562e4e208b75cef40f2c2a48 to your computer and use it in GitHub Desktop.
Only return the favorites of an array.
computed: {
filteredRecipes() {
let tempRecipes = this.recipes
tempRecipes = tempRecipes.filter((item) => {
return item.favorite
})
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment