title: Best way to search through an Object containing multiple objects and arrays
body: <p>I have tried a couple of methods using indexOf and if (x in y) none of which seem to do exactly what I want.</p>
  
  <p>I need to pull through several objects and find a specific number / timestamp / Date depending on the object. Here is a screenshot of the console of my Object.</p>
  
  <p>Any thoughts?
  <img src="https://i.stack.imgur.com/Rdwdx.png" alt="enter image description here"></p>
  
  <p>Specifically when I first get the data I extract all the Timestamps (posted on date / time) from the API Response(s). Using that Array of timestamps I am trying to find the most recent posted object from all the responses.</p>
  
  <p>Here are some more screen captures:</p>
  
  <p>Twitter <code>created_at</code> timestamp
  <img src="https://i.stack.imgur.com/YGkNG.png" alt="Twitter created_at timestamp"></p>
  
  <p>Tumblr <code>timestamp</code>
  <img src="https://i.stack.imgur.com/rVlkA.png" alt="Tumblr timestamp"></p>
  
  <p>and my dates array
  <img src="https://i.stack.imgur.com/C1TnR.png" alt="enter image description here"></p>
  
  <p>And my code used to pull the information and sort it.</p>
  
  <pre><code>//AJAX CALLS
  $.when(
      //Bitter Syndrome
      $.ajax({
          type: "GET",
          dataType: "jsonp",
          cache: false,
          url: "http://api.tumblr.com/v2/blog/"+bittersymdrome_tumblr+"/posts/?api_key="+tumblr_apiKey,
          success: function(data){
              delete data.meta; delete data.response.blog;
              blogs.content.push(data);
          }
      }),
  
      //moundsMusic Tumblr
      $.ajax({
          type: "GET",
          dataType: "jsonp",
          cache: false,
          url: "http://api.tumblr.com/v2/blog/"+moundsmusic_tumblr+"/posts/?api_key="+tumblr_apiKey,
          success: function(data){
              delete data.meta; delete data.response.blog;
              blogs.content.push(data);
          }
      }),
  
      //GateWayDrugSTL Tumblr
      $.ajax({
          type: "GET",
          dataType: "jsonp",
          cache: false,
          url: "http://api.tumblr.com/v2/blog/"+gatewaydrug_tumblr+"/posts/?api_key="+tumblr_apiKey,
          success: function(data){
              delete data.meta; delete data.response.blog;
              blogs.content.push(data);
          }
      }),
  
      //GateWayDrugSTL Twitter
      $.ajax({
          type: "GET",
          dataType: "jsonp",
          cache: false,
          url: "http://api.twitter.com/1/statuses/user_timeline.json?user_id="+gatewaydrug_twitter,
          success: function(data){
              blogs.content.push( data );
              /*var time = data[0].created_at;
              gwdtwDate = Date.parse(time)/1000;*/
          }
      })
  ).done( function(){
      //Get and Sort Dates most recent first.
      for(var i=0;i&lt;blogs.content.length;i++){
          if(!blogs.content[i].length){
              for(var e=0; e&lt;blogs.content[i].response.posts.length; e++){
                  blogs.dates.push(blogs.content[i].response.posts[e].timestamp);
              }
          } else {
              for (var e = 0; e&lt;blogs.content[i].length; e++){
                  var time = blogs.content[i][e].created_at;
                  gatewaydrug_twitter_date = Date.parse(time)/1000;
                  blogs.dates.push(gatewaydrug_twitter_date);
              }
          }
      }
      blogs.dates.sort(function(a,b){return b-a});
      console.log( blogs );
  
      for(var i=0,len=blogs.dates.length; i&lt;len;i++){
  
      }
  });
  </code></pre>
  
  <p><a href="http://thehivestl.com/test/" rel="nofollow noreferrer">Here</a> is a live link to a test server where you can view the object in your browsers console: <a href="http://thehivestl.com/test/" rel="nofollow noreferrer">http://thehivestl.com/test/</a></p>