Within this function, I need to display the remaining amount.
remainingAmount: function() {
return parseFloat(this.sumAmount) - (parseFloat(this.cash) + parseFloat(this.kNet) + parseFloat(this.kNetOnline));
}
The three parameters cash, kNet, and kNetOnline come from v-model. If any of them are null, the result will be NaN! How can I make these v-model inputs optional in this function?