We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3199913 + 6bda45d commit 4d19747Copy full SHA for 4d19747
javascript/unique/wzhouwzhou_unique_values.js
@@ -0,0 +1,3 @@
1
+const values = [1, 2, 3, 4, 5, 1, 1, 1, 3];
2
+
3
+const unique = [void(0)].map((e, i, arr) => new Set(values).forEach(v => arr.push(v)) || arr)[0].slice(1);
0 commit comments