I use vuejs at my project.
I have an array as bellow.
How can I check if a value exists at domain_id of the array?
For example the value ‘5’ or say the value ‘6’
I use includes() but it seems it does not work
Thank you, it seems working.
My next question is how can I change the values of the element that exists at the array.
I use this bellow but it seems it does not work,what do I do wrong?Do I use the elements of array right? this.productTotal[foundIndex].domain_urls.r_url=v.url
[edit]
It seems I do it ok and I have problems at my v-data-table, I will see and I will say.
Well, domain_urls has two properties. One property is called url and the other property is called id.
Why are you using a property called r_url, because that doesn’t exist as a property on the domain_urls object at all.