title: Loop through an object and push key and value into an array
body: <p>I've been trying to pass in an object with some data inside, I then want to push the results in that object into an array, but still keep the key and value names.</p>
  
  <p>The data passed in:</p>
  
  <pre><code>App.config({
      dependencies: : {
          'html5shiv' : 'http://html5shiv.googlecode.com/svn/trunk/html5.js',
          'respondjs' : 'http://respondjs.googlecode.com/svn/trunk/respond.js'
      }
  });
  </code></pre>
  
  <p>My array and logic (indicated where I'm stuck!):</p>
  
  <pre><code>var deps = [];
  App.config = function (obj) {
      var dep = obj.dependencies;
      for (var key in dep) {
          if (dep.hasOwnProperty(key)) {
              deps.push( /* stuck here */ );
          }
      }
      console.log(deps);
  };
  </code></pre>
  
  <p>What I want <em>'deps'</em> to end up with is:</p>
  
  <pre><code>[{
      'html5shiv': 'http://html5shiv.googlecode.com/svn/trunk/html5.js'
  },{
      'respondjs': 'http://respondjs.googlecode.com/svn/trunk/respond.js'
  }];
  </code></pre>
  
  <p>Can anyone advise on the best way to achieve this?</p>