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
As you can see on the last line for C, the double equals (==) compares 2 and 2 and evaluates to true, wheres the triple equals (===) compares the same 2 and 2 and evaluates to false.
The text was updated successfully, but these errors were encountered:
Instead of Object.entries(item).map(([key, value]) => [parseInt(key, 10), value]) you should just be able to do item.map((value, index) => [index, value]).
I'm struggling to understand why this equality check is different between the
==
and===
in the following snippet:🔗 Playground
The output of the above is:
As you can see on the last line for C, the double equals (
==
) compares2
and2
and evaluates to true, wheres the triple equals (===
) compares the same2
and2
and evaluates to false.The text was updated successfully, but these errors were encountered: