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