I have 2 nested structures newState and newState1.
But when I compare their, equals() or Immutable.is() returned false
What about using JSON.stringify?
JSON.stringify
JSON.stringify(values) !== JSON.stringify(anothervalue);
If you know they are not circular objects, and do not contain functions, I think it's the fastest way to compare them.