deduplication 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
package/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * @param arr 要去重的数组
4
4
  * @param type number type为1表示使用set函数去重,type为2表示使用
5
5
  */
6
- export default function deduplication(arr,type=1) {
6
+ function deduplication(arr,type=1) {
7
7
  switch(type){
8
8
  case 1:
9
9
  this.method1(arr);
@@ -14,6 +14,8 @@ export default function deduplication(arr,type=1) {
14
14
  }
15
15
 
16
16
  }
17
+ module.exports=deduplication;
18
+
17
19
 
18
20
  //set去重
19
21
  function method1(arr){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deduplication",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "main": "index.js",
5
5
  "repository": "",
6
6
  "author": "henry",
package/vertify.html DELETED
File without changes