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

I really hope that Map and Set will be iterable as described here: http://wiki.ecmascript.org/doku.php?id=harmony:iterators otherwise, in my opinion, they will be pretty useless.

As an addendum it looks like that 'undefined' is a valid key:

   var m = new Map;
   m.set(undefined, 1);
   console.log(m.get(undefined));


Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

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

Search: