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
I'm not sure if this a known difference with CPython, but when comparing dictionaries for equality, the transpiled JS always returns false. I assume this has to do with how JavaScript compares objects in general. For example:
I'm not sure if this a known difference with CPython, but when comparing dictionaries for equality, the transpiled JS always returns false. I assume this has to do with how JavaScript compares objects in general. For example:
Python Code:
# returns True
Transcrypted Code:
// returns false
I'm assuming the only solution would be to do a recursive comparison of values, or use a 3rd party library like Lodash's
_.isEqual()
function.The text was updated successfully, but these errors were encountered: