javascript - Using spread operator and new Set() with typescript -


i using following code unique numbers:

let uniques = [ ...new set([1, 2, 3, 1, 1]) ]; // [1, 2, 3] 

however, typescript report following error: type 'set' not array type. not typescript ninja, tell me wrong here?

this missing feature. typescript supports iterables on arrays @ moment.


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -