JavaScript - How to cross-compare an array to itself
<p>I have an array like this:</p>

<pre><code>var myObjArray = [{city: 'milwaukee', state: 'wi'}, 
                  {city:'madison', state: 'wi'}, 
                  {city:'greenbay', state: 'wi'}, 
                  {city:'madison', state: 'wi'}];
</code></pre>

<p>How would I compare the array against itself to find duplicates.<br>
(Note: I need to keep the duplicates, so maybe I could add a property to the object as a flag).</p>
