I am currently facing a challenge with removing a comma from a value using Vue.js. Here is the code I am working with:
displayValue(){
var displayValue = this.value;
console.log(displayValue);
if(displayvalue contains a comma){
displayvalue = displayvalue(remove the comma)
}
}
I attempted to use indexOF()
but unfortunately, it did not yield the desired results.
Here is the image of the value before using .replace
:
https://i.sstatic.net/SFcbn.png
And here is the image after utilizing .replace
:
https://i.sstatic.net/bqvLj.png