title: Comparing two objects with undefined values using underscore.js
body: <p>Using underscore.js I am trying to compare two objects against each other and if they are they same I want to return <strong>true</strong>.  To accomplish this I am using _.isEqual().</p>
  
  <pre><code>var a = {0: "2", 1: "11", 2: "1"}
  var b = {0: "2", 1: "11", 2: "1"}
  _.isEqual(a, b) // returns true
  </code></pre>
  
  <p>That works as expected.  The issue I am running into is when I might not have all the data from one of the objects at a given time.  Let's use this example:</p>
  
  <pre><code>var a = {0: "2", 1: undefined, 2: undefined}
  var b = {0: "2", 1: "11", 2: "1"}
  _.isEqual(a, b) // returns false
  </code></pre>
  
  <p>I would like a way (obviously not using ._isEqual) for that to return <strong>true</strong> if some of the values compared are undefined.  Any Ideas?</p>