I have an array which contains the following items:
var jobName = getNextJobName();
var Details = getNextJobDetails();
var item = {
Name: jobName,
Details: Details
};
array.push(item);
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).
Could you please show me an efficient way to do this?