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

java - unable show chart in xls document using jasper reports -

java.lang.RuntimeException: Could not generate dummy secret at sun.security.ssl.RSAClientKeyExchange.<init> -

javascript - How to change image src on success AJAX -