I'm simply trying to compare the notifications list received from the server to the one I've stored on the local side.
if(myApp.NewNotifications != response.data['unread_notifications']){
return true;
} else { return false; }
The problem is that even when they both have the same data, it returns false.
Since I'm using Vue.js on the client side, I assume it attaches some properties to the local object which makes it different to the one received from the backend.
I checked the Lodash documentation but I don't think there are comparison function for such case.