I am using following code to get unique numbers:
let uniques = [ ...new Set([1, 2, 3, 1, 1]) ]; // [1, 2, 3]
Typescript, on the other hand, reports the following error: The array type 'Set' does not exist. Could someone tell me what is wrong here, as I am not a typescript ninja?