answered: arrays cant be checked for equality, thanks oren

does anyone here know why

[typeof "this is a string", typeof "also a string"] == ['string', 'string']

returns false?

Oct 18, 2022, 10:45 PM
2 0 8

comments (single view)

['s','a']==['s','a'] //false
['a']==['a'] //false

I guess arrays just cant be checked for equality

oh, good thing i found a different way to find what i was looking for

yeah I looked it up, they cant

View all comments