@whitesev/utils 2.11.1 → 2.11.2
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/dist/index.amd.js +17 -4
- package/dist/index.amd.js.map +1 -1
- package/dist/index.amd.min.js +1 -1
- package/dist/index.amd.min.js.map +1 -1
- package/dist/index.cjs.js +17 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs.min.js +1 -1
- package/dist/index.cjs.min.js.map +1 -1
- package/dist/index.esm.js +17 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.min.js +1 -1
- package/dist/index.esm.min.js.map +1 -1
- package/dist/index.iife.js +17 -4
- package/dist/index.iife.js.map +1 -1
- package/dist/index.iife.min.js +1 -1
- package/dist/index.iife.min.js.map +1 -1
- package/dist/index.system.js +17 -4
- package/dist/index.system.js.map +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/dist/index.umd.js +17 -4
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/Utils.ts +20 -6
package/dist/index.iife.js
CHANGED
|
@@ -240,7 +240,7 @@ var Utils = (function () {
|
|
|
240
240
|
const setInterval$1 = (...args) => loadOrReturnBroker().setInterval(...args);
|
|
241
241
|
const setTimeout$1 = (...args) => loadOrReturnBroker().setTimeout(...args);
|
|
242
242
|
|
|
243
|
-
const version = "2.11.
|
|
243
|
+
const version = "2.11.2";
|
|
244
244
|
|
|
245
245
|
/* eslint-disable */
|
|
246
246
|
// ==UserScript==
|
|
@@ -7992,9 +7992,22 @@ var Utils = (function () {
|
|
|
7992
7992
|
return result;
|
|
7993
7993
|
}
|
|
7994
7994
|
else {
|
|
7995
|
-
|
|
7996
|
-
|
|
7997
|
-
|
|
7995
|
+
const compareSet = new Set(compareArrayData);
|
|
7996
|
+
const result = [];
|
|
7997
|
+
for (let i = 0; i < uniqueArrayData.length; i++) {
|
|
7998
|
+
const item = uniqueArrayData[i];
|
|
7999
|
+
let flag = false;
|
|
8000
|
+
for (const compareItem of compareSet) {
|
|
8001
|
+
if (compareFun(item, compareItem)) {
|
|
8002
|
+
flag = true;
|
|
8003
|
+
break;
|
|
8004
|
+
}
|
|
8005
|
+
}
|
|
8006
|
+
if (!flag) {
|
|
8007
|
+
result.push(item);
|
|
8008
|
+
}
|
|
8009
|
+
}
|
|
8010
|
+
return result;
|
|
7998
8011
|
}
|
|
7999
8012
|
}
|
|
8000
8013
|
/**
|