What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-10 10:03:19
array to set javascript
const myArray = [1,2,3,1,5,8,1,2,9,4]; const unique = [...new Set(myArray)]; // [1, 2, 3, 5, 8, 9, 4] const myString = ["a","b","c","a","d","b"]; const uniqueString = [...new Set(myString)]; //[... Add solution -
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5