Saturday, 22 December 2018

How Key and value equality of Map and Set happens in JavaScript?

JavaScript checks the equality of keys in map and equality of values in map using 'SameValueZero' algorithm.

SameValueZero(x, y) is implemented like below.



SaveValueNonNumber(x,y) is implemented like below.

Previous                                                 Next                                                 Home

No comments:

Post a Comment