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
Post a Comment