0👍
I don’t know exactly what you are trying to accomplish.
Don’t define the variables, if you are going to calculate them.
Use .filter
to make a new array based on some condition, and use .length
to get how many objects in that array
computed: {
matchSkill() { return this.abilities.filter(ability => ability.booleanValue === "yes").length},
}
Source:stackexchange.com