title: How can I do a shallow comparison of the properties of two objects with Javascript or lodash?
body: <p>Is there a way I can do a shallow comparison that will not go down and compare the contents of objects inside of objects in Javascript or lodash? Note that I did check lodash, but it appears to perform a deep comparison which I don't want to do.</p>
  
  <pre><code>var a = { x: 1, y: 2}
  var b = { x: 1, y: 3}
  </code></pre>
  
  <p>Is there some way for example to compare <code>a</code> and <code>b</code>?</p>