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 +3 -1
- package/package.json +1 -1
- package/vertify.html +0 -0
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
|
-
|
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
package/vertify.html
DELETED
File without changes
|