3 ms·
Is there any non-primitive JS type that has non-referential equality for ==?
by brundolf 2y ago
Is there any non-primitive JS type that has non-referential equality for ==?
- tubthumper8 2y agoYeah, that's one of the core problems, there's no overloading of equals in JS and no other cases of objects using non-reference equality. Adding that in itself would be a big deal (ex. see the Records and Tuples proposal which has been going on for years and may never complete)
- 8n4vidtmkvmk 2y agoThere's exactly one IIRC. document.all