Set length property

Peter Michaux petermichaux at
Sun Feb 12 16:36:09 PST 2012

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

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

var s = new Set();
s.length; // 2


More information about the es-discuss mailing list