4 ms·
They only need a unique id for the object, they can't hash based on the object contents because those can change and because two objects with exactly the same p
by phpnode 9y ago
They only need a unique id for the object, they can't hash based on the object contents because those can change and because two objects with exactly the same properties are not equal in JS:
assert({} === {}); // throws
- infogulch 9y agoBut couldn't the hash be based on the object pointer or something?