com.meta.xr.sdk.utilities 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +2 -8
- package/index.js +0 -18
package/package.json
CHANGED
@@ -1,12 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "com.meta.xr.sdk.utilities",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.1.0",
|
4
4
|
"main": "index.js",
|
5
|
-
"
|
6
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
7
|
-
},
|
8
|
-
"keywords": [],
|
9
|
-
"author": "",
|
10
|
-
"license": "ISC",
|
11
|
-
"description": ""
|
5
|
+
"license": "MIT"
|
12
6
|
}
|
package/index.js
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
let uniqueArr = [];
|
2
|
-
|
3
|
-
function removeArrayDuplicates(arr) {
|
4
|
-
// Accepts an array from which the duplicates
|
5
|
-
// will be removed
|
6
|
-
|
7
|
-
if (!Array.isArray(arr)) {
|
8
|
-
arr = [];
|
9
|
-
}
|
10
|
-
|
11
|
-
let theSet = new Set(arr);
|
12
|
-
|
13
|
-
let uniqueArr = [...theSet];
|
14
|
-
|
15
|
-
return uniqueArr;
|
16
|
-
}
|
17
|
-
|
18
|
-
module.exports = removeArrayDuplicates;
|