title: lodash convert array of objects to single array of keys and multiple array of values
body: <p>I need to transmit some data, that has too many key-value pairs.
  As the keys are similar, I dont want to transmit them with each object.</p>
  
  <p>Consider I have the following data:</p>
  
  <pre><code>[
      {
          x:11,
          y:12
      },{
          x:21,
          y:22
      },{
          x:31,
          y:32
      },{
          x:41,
          y:42
      }
  ];
  </code></pre>
  
  <p>And I need the final output as<br>
  <code>[ [x,y],[[11,12],[21,22],[31,32],[41,42]] ]</code> OR<br>
  <code>[ [x,y],[11,12],[21,22],[31,32],[41,42] ]</code></p>
  
  <p>On the other end, <strong>I should be able to convert back to its original form</strong>.
  It would be great if it can <strong>handle an additional key in some of the objects</strong></p>
  
  <p>I think I have seen lodash or underscore function for something close/similar to this, but I'm not able to find it right now.</p>
  
  <p><strong>NOTE: I don't know what the keys will be</strong></p>