Help needed with this array manipulation task:
var arr = [{id:"1",Name:"Tom"},
{id:"2",Name:"Jon"},
{id:"3",Name:"Tom"},
{id:"4",Name:"Jack"}]
I want to extract unique Names from the above array.
var result = getUniqueNames(arr);
The final result
should be:
["Tom","Jon","Jack"];
Can anyone guide me on how to achieve this task effectively?