On Feb 24, 2015, at 5:52 AM, Axel Rauschmayer wrote: > I’ve accidentally created the wrong set a few times: > > ```js > let set = new Set('red', 'green', 'blue'); > // WRONG: same as new Set(['r', 'e', 'd']) > ``` > > Would it make sense to throw if either of the constructors `Set` and `Map` > receives more than one argument?
or perhaps we should have Set.of(...args) and Set.from(iterable) methods. Allen _______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss