I have an array of dictionaries (from server). Then I get a one dictionary from database - and I need to find a this dictionary (from database) in array.

`array.indexOf(dict)` - it does not work, I think it's because dictionaries has different hidden fields

Get and compare strings ( `toString()` ) - does not work

If use a filter:

```
array.filter(function(dictFromArr){
  return dictFromArr.id == dict.id && ...
});

```

Does not fit, because so many fields.

Does anyone know how else to compare dictionaries?