The Importance of Hash Implementation for Equal in TypeScript
why does
why is just
I understand that if that type implements
But I could see a situation where you want to implement
Equal require a Hash implementation?why is just
self[symbol](that) not enough?I understand that if that type implements
Hash, the hashes should be the same if the objects are equalBut I could see a situation where you want to implement
Equal for a type, but it is not necessary to implement Hash