0
if (this.filter !== this.$options.data().filter){
    console.log('current filter have same value like when first time created')
}

this if always return false although they are have same value, because this.filter return Observer. How to compare them properly?

enter image description here

Donny Gunawan
  • 363
  • 1
  • 6
  • 21
  • Referencing your `objects`'s, why not just compare the `value` of `brand`? – bazzells Sep 25 '17 at 21:12
  • 2
    Possible duplicate of [Object comparison in JavaScript](https://stackoverflow.com/questions/1068834/object-comparison-in-javascript) – Etheryte Sep 25 '17 at 21:20

0 Answers0