title: what is the easiest way to test if a value exists in an object using lodash or angularjs
body: <p>This works if obj is a collection but if I am just trying to test if a value exists in a single object it is not working.  What is the most efficient way using lodash or angularjs to test if a serach term exists within an object?  Thanks!!</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var obj = {
    id: 4,
    name: 'test',
    value: 'car',
    description: 'I like soup'
  }
  
  var searchTerm=  'soup';
  
  var testObject = function(){  
    var status = true;
    status = _.some(obj, searchTerm);  
    console.dir(status);  
  }
  
  testObject();</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.9/angular.min.js"&gt;&lt;/script&gt;
  &lt;script src="lodash.js"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>