DEV Community

loading...

Discussion on: What is hashtable in javascript and in what scenarios one must decide to use hashtable as a data structure ?

Collapse
krofdrakula profile image
Klemen Slavič • Edited

No, it's not a deep comparison, it's equivalent to === between values, just like indexOf() on arrays. And yes, internally within the VM, every object has a unique ID which is used for comparisons using strict equality, but it isn't available as an exposed value in JS.

For an in-depth look at that, see dev.to/krofdrakula/searching-throu...

Forem Open with the Forem app