re: Sets in JavaScript VIEW POST

FULL DISCUSSION
 

Are set values unique, I can't remember, but if they are passing a string would be destructive, hello world would be helo wrd

 

Yes, Set values are unique. It will filter-out the duplicate characters if you pass a string to create a set.

 
code of conduct - report abuse