title: jQuery Convert Object Array to Array with keys
body: <p>I have an object array which looks like:</p>
  
  <pre><code>Object {0: "Ma. Jessa Martinez", 1: "Edwin Cuevas", 2: "Gerum Generol", 3: "Roy delos Reyes", 4: "Hannah Montecillo", 5: "Ralph Turla", 6: "Edralyn Danabar", 7: "Angelo Sto Domingo", 8: "Rhina Dela Cruz", 9: "Ricardo Camara", 10: "Joene Floresca"}
  </code></pre>
  
  <p>And I want to convert in array like:</p>
  
  <pre><code>[[0,"Ma. Jessa Martinez"],[1,"Edwin Cuevas"],[2,"Gerum Generol"], and so on]
  </code></pre>
  
  <p>I tried using</p>
  
  <pre><code> var myobj_array= $.map(ticks, function(value, index) {
      return [value];
   });
  </code></pre>
  
  <p>But it only return the values with no keys:</p>
  
  <pre><code>["Ma. Jessa Martinez", "Edwin Cuevas", "Gerum Generol", "Roy delos Reyes", "Hannah Montecillo", "Ralph Turla", "Edralyn Danabar", "Angelo Sto Domingo", "Rhina Dela Cruz", "Ricardo Camara", "Joene Floresca"]
  </code></pre>
  
  <p>Is there other way? I've search already in google I can't find a similar thing.</p>
  
  <p><strong>EDIT</strong> To be clear where my object array came from, I added this for reference. It came from an ajax request and already sorted:</p>
  
  <pre><code>var ticks = {};
  $.each(result, function(key,value) {
      ticks[key] = value.name;
  });
  </code></pre>