title: JavaScript: How to turn a dictionary into a list of elements?
body: <p>What is the most elegant way to turn this:</p>
  
  <pre><code>{
      'a': 'aa',
      'b': 'bb'
  }
  </code></pre>
  
  <p>into this:</p>
  
  <pre><code>[
      ['a', 'aa'],
      ['b', 'bb']
  ]
  </code></pre>