@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.
@@ -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.1";
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
- return Array.from(uniqueArrayData).filter((item) => !Array.from(compareArrayData).some(function (item2) {
7996
- return compareFun(item, item2);
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
  /**