title: The most efficient way to convert a javascript set to string
body: <p>Is there a way of converting a Set to a String directly (without first converting the set to an array)? I have gone through the documentation at <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set" rel="nofollow noreferrer">Mozilla</a> and I feel they may be a  way of doing it. This is what I do:</p>
  
  <pre><code>let myset = new Set();
  myset.add(3);
  myset.add(" Wise ");
  myset.add(" Men ");
  
  let setStr = myset.toString();
  let setArrStr = Array.from(myset).toString();
  
  console.log("Set to String: " + setStr );  //"Set to String: [object Set]"
  console.log("Set to Array to String: " + setArrStr);  // "Set to Array to String: 3, Wise , Men "
  </code></pre>