SameValueZero equality, as native Map and Set use: primitives by value (NaN equals NaN,
-0 equals 0), objects, functions and classes by identity. Ignores the equality protocol.
It is what hashed collections use when no key or equivalence is given. Frozen.
Time: O(1) for equals; hash as hashCode without the protocol.
SameValueZero equality, as native
MapandSetuse: primitives by value (NaNequalsNaN,-0equals0), objects, functions and classes by identity. Ignores the equality protocol. It is what hashed collections use when nokeyorequivalenceis given. Frozen.Time: O(1) for
equals;hashas hashCode without the protocol.