Compare Revisions

Set

Change Revisions

Revision 513611:

Revision 513611 by arai on

Revision 513645:

Revision 513645 by arai on

Title:
Set
Set
Slug:
Web/JavaScript/Reference/Global_Objects/Set
Web/JavaScript/Reference/Global_Objects/Set
Tags:
"Référence", "Reference", "Non Standard", "ECMAScript6", "JavaScript"
"Référence", "Reference", "Non Standard", "ECMAScript6", "JavaScript"
Content:

Revision 513611
Revision 513645
nn79            <code>mySet.keys()</code>
80          </td>
81          <td>
82            {{ fx_minversion_inline("24") }} Returns the iterator
 > which returns <code>value</code> of <code>mySet</code> for each 
 >iteration, in insertion order.
83          </td>
84        </tr>
85        <tr>
86          <td>
87            <code>mySet.values()</code>
88          </td>
89          <td>
90            {{ fx_minversion_inline("24") }} Returns the iterator
 > which returns <code>value</code> of <code>mySet</code> for each 
 >iteration, in insertion order.
91          </td>
92        </tr>
93        <tr>
94          <td>
95            <code>mySet.entries()</code>
96          </td>
97          <td>
98            {{ fx_minversion_inline("24") }} Returns the iterator
 > which returns an array of <code>[value, value]</code> of <code>m
 >ySet</code> for each iteration, in insertion order.
99          </td>
100        </tr>
101        <tr>
102          <td>
nn156for (let item of mySet.keys()) console.log(item); // logs the ite
 >ms in the order: 1, "some text" 
157for (let item of mySet.values()) console.log(item); // logs the i
 >tems in the order: 1, "some text" 
158for (let [key, value] of mySet.entries()) console.log(key); // lo
 >gs the items in the order: 1, "some text" (here, key and value ar
 >e same)
nn282              Set.keys(), Set.values(), Set.entries()
283            </td>
284            <td>
285              {{ CompatNo() }}
286            </td>
287            <td>
288              {{CompatGeckoMobile("24")}}
289            </td>
290            <td>
291              {{ CompatNo() }}
292            </td>
293            <td>
294              {{ CompatNo() }}
295            </td>
296            <td>
297              {{ CompatNo() }}
298            </td>
299          </tr>
300          <tr>
301            <td>
tt395            </td>
396            <td>
397              {{ CompatNo() }}
398            </td>
399            <td>
400              {{ CompatNo() }}
401            </td>
402            <td>
403              {{ CompatNo() }}
404            </td>
405          </tr>
406          <tr>
407            <td>
408              Set.keys(), Set.values(), Set.entries()
409            </td>
410            <td>
411              {{ CompatNo() }}
412            </td>
413            <td>
414              {{CompatGeckoMobile("24")}}

Back to History