com.meta.xr.sdk.utilities 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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.0.
|
3
|
+
"version": "1.0.1",
|
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;
|