How to compare two object variables in EL expression language?

In Expression Language you can just use the == or eq operator to compare object values. Behind the scenes they will actually use the Object#equals(). This way is done so, because until with the current EL 2.1 version you cannot invoke methods with other signatures than standard getter (and setter) methods (in the upcoming EL … Read more

Object comparison in JavaScript [duplicate]

Unfortunately there is no perfect way, unless you use _proto_ recursively and access all non-enumerable properties, but this works in Firefox only. So the best I can do is to guess usage scenarios. 1) Fast and limited. Works when you have simple JSON-style objects without methods and DOM nodes inside: JSON.stringify(obj1) === JSON.stringify(obj2) The ORDER … Read more