Return unique keys from JavaScript Array
<p>I'm hoping my question is using the correct terminology...</p>

<p>Can someone explain to me how I can perform the following:</p>

<p>If I have an array consisting of:</p>

<blockquote>
  <p>Object { id=1498, brandName="Booths", quality="Standard"}
  Object { id=1499, brandName="Booths", quality="Standard"}</p>
</blockquote>

<p>How can I iterate throughout that array and return another array of distinct 'keys'?</p>

<p>Ultimately I want an array which would return something like:</p>

<p>[id,brandName,quality] (but the original array is going to return different keys at different times.</p>

<p>Have I made sense?</p>
