title: How do I use the includes method in lodash to check if an object is in the collection?
body: <p>lodash lets me check for membership of basic data types with <code>includes</code>:</p>
  
  <pre><code>_.includes([1, 2, 3], 2)
  &gt; true
  </code></pre>
  
  <p>But the following doesn't work:</p>
  
  <pre><code>_.includes([{"a": 1}, {"b": 2}], {"b": 2})
  &gt; false
  </code></pre>
  
  <p>This confuses me because the following methods that search through a collection seem to do just fine: </p>
  
  <pre><code>_.where([{"a": 1}, {"b": 2}], {"b": 2})
  &gt; {"b": 2}
  _.find([{"a": 1}, {"b": 2}], {"b": 2})
  &gt; {"b": 2}
  </code></pre>
  
  <p>What am I doing wrong?  How do I check for the membership of an object in a collection with <code>includes</code> ?</p>
  
  <p>edit: 
  question was originally for for lodash version 2.4.1, updated for lodash 4.0.0</p>