Convert Object to a List of Arrays : <p>I am being passed a key/value object called obj that needs to convert to a list of arrays in an array ( arr[ [key: value] [key: value] ] )</p>

<pre><code>function convertObjectToList(obj) {
  var arr = [];
  var i = 0;
  for(var key in obj){
    arr[0][i][0] = key;
    arr[0][i][1] = obj[key];
    i++;
  }
  return arr;
}
</code></pre>
