title: Is it possible to shuffle elements within an object in JavaScript?
body: <p>I have this object:</p>
  
  <pre><code>{ foo: 1, bar: 2, cheese: 3 }
  </code></pre>
  
  <p>I want to shuffle the elements, so it becomes:</p>
  
  <pre><code>{ bar: 2, cheese: 3, foo: 1 }
  </code></pre>
  
  <p>Or some other kind of combination. Is there a function to do this? This is because I want to produce varying results when using <code>JSON.stringify</code> on it. The only answers I could find on the internet refer to shuffling objects within an array.</p>
  
  <p>Thanks.</p>