We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53b9fb6 commit 2445df7Copy full SHA for 2445df7
src/format/remove_duplicates.ts
@@ -0,0 +1,3 @@
1
+export default function removeDuplicates<ArrayType extends string | number>(array : ArrayType[]) : ArrayType[] {
2
+ return [...new Set(array)];
3
+}
0 commit comments