I am writing a React Native application. At one point I have an if
statement that should fire if two parts of the state are equal. In the case I am testing, the two parts seem to be equal, yet the comparison operator continues to return false
. See console logs below:
Please note that I also separately logged the types of the two state objects as well as the types of the values associated with each key and those appear the same as well. What is going on here?