Anne van Kesteren (2013-05-21T05:23:50.000Z)
On Tue, May 21, 2013 at 6:20 AM, Domenic Denicola
<domenic at domenicdenicola.com> wrote:
> As long as the contract that `map.set(x, y); map.get(x) === y` works for any `x` and `y`, then you're probably fine.

I think it would have to subclass those methods by using toString() on
the argument passed. It seems that would still be Map-like though.


--
http://annevankesteren.nl/
github at esdiscuss.org (2013-07-12T02:27:21.724Z)
On Tue, May 21, 2013 at 6:20 AM, Domenic Denicola <domenic at domenicdenicola.com> wrote:
> As long as the contract that `map.set(x, y); map.get(x) === y` works for any `x` and `y`, then you're probably fine.

I think it would have to subclass those methods by using toString() on
the argument passed. It seems that would still be Map-like though.