title: How to get individual key value from “Set” Object in JavaScript?
body: <p>I have Set() object with three key value</p>
  
  <pre><code>var myset =new Set();
  myset.add('first','This is first value');
  myset.add('second','This is second value');
  myset.add('third','This is third value');
  </code></pre>
  
  <p>Using loop I can got value of these three key</p>
  
  <pre><code>for( var value of myset){
    console.log(value);
  }
  </code></pre>
  
  <p>How can get individual value? I want to get second key of value?</p>
  
  <p>Is there any option?</p>
  
  <p>I have tried these but not working</p>
  
  <pre><code>myset.get('second');
  myset(1);
  </code></pre>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var myset = new Set();
  myset.add('first', 'This is first value');
  myset.add('second', 'This is second value');
  myset.add('third', 'This is third value');
  
  //   Using loop I can got value of these three key
  
  for (var value of myset) {
    console.log(value);
  }
  
  // How can get individual value? I want to get second key of value?
  
  // I have tried these but not working
  
  myset.get('second');
  myset(1);</code></pre>
  </div>
  </div>
  </p>