News for hackers. Stuff that matters.
Re:Introducing smap.js, a forward polyfill for ES6 Maps by just2n on Friday November 09, 2012 @01:57PM (#4764207)
I have quite a few questions about this implementation, but here are two bigger ones:

1. Why are constructed Maps here having delete, get, has, set, size, keys, values, and iterate added outside of the prototype? I guess I don't see why you wouldn't just put these on the prototype. That said, .call seems to be unnecessary in a lot of this code.

2. Why isn't there any attempt to make lookups for primitives faster. It's all O(n).

There are no comments on this comment yet.