javascript get unique key values
<p>I have an array which contains the following items:</p>

<pre><code>var jobName = getNextJobName();
var Details = getNextJobDetails();
var item = {
          Name: jobName,
          Details: Details
        };
array.push(item);
</code></pre>

<p>I want to extract all the unique names (from the Name field).
(in order to create a new object which groups all the details for a specific job).</p>

<p>Could you please show me an efficient way to do this?</p>
