3 ms·
But ES6 Map/Set is almost useless as it has no custom hash nor equality function. The key is either numeric, string, or object identity, not anyway better than
by netheril96 9y ago
But ES6 Map/Set is almost useless as it has no custom hash nor equality function. The key is either numeric, string, or object identity, not anyway better than the builtin {}.
- pizlonator 9y agoI've found them to be useful when I write ES6 code. I agree that custom hash and equality functions would make these classes a lot better.
- saamyjoon 9y agoI agree too. I wonder if this has been discussed at TC39.