Status: New
Owner: ----

New issue 2323 by [email protected]: Add forEach to Map and Set
http://code.google.com/p/v8/issues/detail?id=2323

At the last TC39 face to face meeting it was agreed that we should add forEach to Map and Set. This would work like Array forEach. For set the value and the key/index would be the same. For example:

var s = new Set;
s.add(1);
s.add(true);
s.forEach(function(a, b, c) {
  assert(a === b);
})

This is important because having Map and Set without iteration makes them really crippled and getting iterator/generator/for-of support in V8 is far off.

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to