Instantly share code, notes, and snippets.

Embed
What would you like to do?
Exemplo de utilização do paradigma funcional em um filter do Vue 2.0.
computed: {
filteredThings () {
return this.things
.filter(contains(this.foo))
.sort(by(thing => thing.bar))
.slice(0, 10)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment