This is definetely not very nice, but according to the experts on stackexchange (sic) this is the only way to compare javascript *objects* in one line of code.