Rick Waldron (2013-09-16T18:59:23.000Z)
domenic at domenicdenicola.com (2013-09-25T02:36:20.952Z)
On Mon, Sep 16, 2013 at 11:33 AM, Angus Croll <anguscroll at gmail.com> wrote: > I'm trying to figure out the most painless way, given a set, to return the > set's values as an array. ```js set.values(); // An array of the set's values ``` > Possibilities: > 1. harmony wiki (http://wiki.ecmascript.org/doku.php?id=harmony:iterators) > suggests the following, but it is a syntax error in traceur, continuum and > "node --harmony" > > ```js > let arr = [e for e of mySet]; > ``` Just a heads up, that wiki page is out of date (see the notice at the top of the page) and shows the old syntax (as shown above). The up-to-date syntax is: ```js let arr = [for (e of mySet) e]; ``` (I realize this is beside the point of the question)