deduplication 1.0.1 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +6 -2
- package/package.json +1 -1
package/index.js
CHANGED
@@ -6,10 +6,10 @@
|
|
6
6
|
function deduplication(arr,type=1) {
|
7
7
|
switch(type){
|
8
8
|
case 1:
|
9
|
-
|
9
|
+
return method1(arr);
|
10
10
|
break;
|
11
11
|
case 2:
|
12
|
-
|
12
|
+
method2(arr);
|
13
13
|
break;
|
14
14
|
}
|
15
15
|
|
@@ -22,3 +22,7 @@ function method1(arr){
|
|
22
22
|
let a = new Set(arr);
|
23
23
|
return [...a];
|
24
24
|
}
|
25
|
+
|
26
|
+
function method2(arr) {
|
27
|
+
|
28
|
+
}
|