Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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 {}.


I'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.


I agree too. I wonder if this has been discussed at TC39.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: