title: Lodash : return first key of object whose value(i.e Array) has a given element (i.e string) in it
body: <p>I have an object like:</p>
  
  <pre><code>var obj = {
    "01": ["a","b"],
    "03": ["c","d"],
    "04": ["e","c"]
  };
  </code></pre>
  
  <p>and I know an array element ( say "c") of the object key's value then <strong>How to find first key value i.e "03" using lodash without using if else?</strong></p>
  
  <p>I tried like this using lodash and if else:</p>
  
  <pre><code>var rId = "";
  _.forOwn(obj, function (array, id) {
       if (_.indexOf(array, "c") &gt;= 0) {
             rId = id;
             return false;
       }
  });
  
  console.log(rId); // "03"
  </code></pre>
  
  <p><strong>Expected Result: first key i.e "03" if element matches else "".</strong></p>
  
  <p><strong>After seeing comments:</strong> Now I'm also curious to know about </p>
  
  <p>Does I need to go with native javascript(hard to read program in the cases if we use more than 2 if blocks) or lodash way(easily readable program solution in one line)?</p>