I have a certain array:
acoes_selecionadas: ['nome1', 'nome2'];
I'm using this function, but splice
works based on element ID, I need to find a way to remove it by value.
seta_vender: function() {
this.vender = !this.vender;
if (this.vender) {
this.acoes_selecionadas.push('Vender');
} else {
this.acoes_selecionadas.splice('Vender');
}
}