title: Deep comparison of objects/arrays
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/201183/how-do-you-determine-equality-for-two-javascript-objects">How do you determine equality for two JavaScript objects?</a><br>
    <a href="https://stackoverflow.com/questions/1068834/object-comparison-in-javascript">Object comparison in JavaScript</a>  </p>
  </blockquote>
  
  
  
  <p>If I have two arrays or objects and want to compare them, such as</p>
  
  <pre><code>object1 = [
   { shoes:
     [ 'loafer', 'penny' ]
    },
    { beers:
       [ 'budweiser', 'busch' ]
    }
  ]
  
  object2 = [
   { shoes:
     [ 'loafer', 'penny' ]
    },
    { beers:
       [ 'budweiser', 'busch' ]
    }
  ]
  
  object1 == object2 // false
  </code></pre>
  
  <p>this can be annoying if you're getting a response from a server and trying to see if it's changed</p>