Assuming I have the following:
var array = [ {\"name\":\"Joe\", \"age\":17}, {\"name\":\"Bob\", \"age\":17}, {\"name\":\"Carl\
This is how you would solve this using new Set via ES6 for Typescript as of August 25th, 2017
Array.from(new Set(yourArray.map((item: any) => item.id)))