See the thread containing Dean Landolt's dissent on 'length' being the best name:

https://mail.mozilla.org/pipermail/es-discuss/2011-November/018571.html

The January 19 2012 meeting notes recorded here:

https://mail.mozilla.org/pipermail/es-discuss/2012-January/019784.html

include "At next meeting MarkM will present a tiny API proposal for maps and sets."

/be

Peter Michaux wrote:
In the proposal, set objects have no length property. It is common to
want to know the length of a set.

http://wiki.ecmascript.org/doku.php?id=harmony:simple_maps_and_sets

For example, it would be good to be able to do the following.

var s = new Set();
s.add('alpha');
s.add('beta');
s.length; // 2


Peter
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to