title: How to push object literals as key-value pairs to array?
body: <p>What is the best way to separate each pairs into array?</p>
  
  <pre><code>const myObject = {
    firstName: 'John',
    surname: 'Doe',
    city: 'New York'
  }
  </code></pre>
  
  <p><strong>to:</strong></p>
  
  <pre><code>[{'firstName': 'John'}, {'surname': 'Doe'}, {'city': 'New York'}]
  </code></pre>
  
  <p>Btw, old posts suggest lodash mapping</p>
  
  <pre><code>const newArray = _.map(myObject, (value, key) =&gt; ({key, value}))
  </code></pre>
  
  <p>but it would return something like:</p>
  
  <pre><code>[ { key: 'firstName', value: 'John' },
   { key: 'surname', value: 'Doe' },
   { key: 'city', value: 'New York' } ]
  </code></pre>
  
  <p>I don't want the keys to be there.</p>