You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This comparison can never be true because you are looking for a strict (i.e. object reference) equality with an object you are creating within the predicate.
Any time you create an object literal, you create a new object reference.
Strict equality between objects compares the references. That is, obj1 === obj2 can only ever be true if both those variables refer to the same memory location. But when you create an object literal, that is a brand new object, in a different memory location.
The text was updated successfully, but these errors were encountered:
https://github.com/FAC10/MPBots/blob/97ce6bb4717b65f056da27db3a3eda41c1a4a362/src/helper_functions/answer_objects.js#L11
This comparison can never be true because you are looking for a strict (i.e. object reference) equality with an object you are creating within the predicate.
Any time you create an object literal, you create a new object reference.
Strict equality between objects compares the references. That is,
obj1 === obj2
can only ever be true if both those variables refer to the same memory location. But when you create an object literal, that is a brand new object, in a different memory location.The text was updated successfully, but these errors were encountered: