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
Performing a deep equal on an uninitialized array doesn't behave as expected.
constmyTestArray1=[undefined,'test']constmyTestArray2=[]// myTestArray2[0] should be equal to undefined by defaultmyTestArray2[1]='test'expect(myTestArray1).to.deep.equal(myTestArray2)
I would expect these two arrays to pass a deep equality check since javascript seems to default uninitialized values to undefined
The text was updated successfully, but these errors were encountered:
omarjackman
changed the title
Comparison between uninitialized arrays fails
Comparison between uninitialized arrays fail
Nov 1, 2018
Just looking at chrome dev console it shows something called empty but I couldn't find any documentation on what that is but I'm guessing its related to this issue
Performing a deep equal on an uninitialized array doesn't behave as expected.
I would expect these two arrays to pass a deep equality check since javascript seems to default uninitialized values to
undefined
The text was updated successfully, but these errors were encountered: