Marina Mosti is a full-stack web developer with over 14 years of experience in the field. She enjoys mentoring other women on JavaScript and her favorite framework, Vue.
Well, you're passing [address.id] as an index to the dupAddress array, that's just not going to work because the id !== index. Try changing it to address.id or address.name without accessing the array
I have also this solution O.o
But this only works with
address.id
, so this doesn't work withaddress.name
Really, why this doesn't work like that?
Well, you're passing
[address.id]
as an index to thedupAddress
array, that's just not going to work because theid !== index
. Try changing it toaddress.id
oraddress.name
without accessing the arrayOkay, I tried it didn't work actually I was wonder why that didn't work. Thanks.