deduplication 1.0.1 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +6 -2
  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
- this.method1(arr);
9
+ return method1(arr);
10
10
  break;
11
11
  case 2:
12
- this.method2(arr);
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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deduplication",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "main": "index.js",
5
5
  "repository": "",
6
6
  "author": "henry",