title: Get the property of the difference between two objects in javascript
body: <p>Let's say that I have an object which looks like this:</p>
  
  <pre><code>{
    prop1: false,
    prop2: false,
    prop3: false
  }
  </code></pre>
  
  <p>and another object which looks like this:</p>
  
  <pre><code>{
    prop1: false,
    prop2: true,
    prop3: false
  }
  </code></pre>
  
  <p>where the difference is within the <code>prop2</code> property. Is there any way or library (vanilla preferred though) which will compare the two objects, find the property with the different value, and return the property name (in this case <code>prop2</code>)?</p>
  
  <p>I have tried using the difference and differenceBy functions in lodash to no success. Any help or suggestions will be greatly appreciated!</p>