title: Lodash - Search Nested Array and Return Object
body: <p>I'm using Lodash to search a nested array and want return the object if it finds a match.</p>
  
  <p>For each object, search for Bus 4. If found, return the object (in this case, school 'xyz'). </p>
  
  <pre class="lang-js prettyprint-override"><code>var schools = [  
     {  
        "id":1,
        "school":"abc",
        "bus":[  
           {  
              "id":1,
              "name":"first bus"
           },
           {  
              "id":2,
              "name":"second bus"
           }
        ]
     },
     {  
        "id": 2,
        "school":"xyz",
        "bus":[  
           {  
              "id":3,
              "name":"third bus"
           },
           {  
              "id":4,
              "name":"fourth bus"
           }
        ]
     }
  ]
  </code></pre>
  
  <p>Here's what I have so far:</p>
  
  <pre><code>_.forEach(schools, function(school){console.log(_.where(school.bus, {'id':4}))})
  </code></pre>
  
  <p>Just spitting out the results. Kind of works.</p>