title: Lodash - Conditionally Return Object from a Map Method
body: <p>I want to iterate through an array, run a calculation, and if the condition is true for the result, return a new object.  <code>_.filter(...)</code> would not work here, since the iterator function must return either <code>true</code> or <code>false</code>.</p>
  
  <pre><code>_.map(people, function(person) {
  
      var age = calculateAge(person.birthDate);
  
      if (age &gt; 50) {
          return {person: person, age: age};
      }
  
  });
  </code></pre>
  
  <p>I've tried searching all over, including the documentation, but I haven't found a way to do this well.</p>