Overriding Map/etc with get/set hooks?
Anne van Kesteren
annevk at annevk.nl
Mon May 20 22:23:50 PDT 2013
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.
More information about the es-discuss