@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.umd.js CHANGED
@@ -243,7 +243,7 @@
243
243
  const setInterval$1 = (...args) => loadOrReturnBroker().setInterval(...args);
244
244
  const setTimeout$1 = (...args) => loadOrReturnBroker().setTimeout(...args);
245
245
 
246
- const version = "2.11.1";
246
+ const version = "2.11.2";
247
247
 
248
248
  /* eslint-disable */
249
249
  // ==UserScript==
@@ -7995,9 +7995,22 @@
7995
7995
  return result;
7996
7996
  }
7997
7997
  else {
7998
- return Array.from(uniqueArrayData).filter((item) => !Array.from(compareArrayData).some(function (item2) {
7999
- return compareFun(item, item2);
8000
- }));
7998
+ const compareSet = new Set(compareArrayData);
7999
+ const result = [];
8000
+ for (let i = 0; i < uniqueArrayData.length; i++) {
8001
+ const item = uniqueArrayData[i];
8002
+ let flag = false;
8003
+ for (const compareItem of compareSet) {
8004
+ if (compareFun(item, compareItem)) {
8005
+ flag = true;
8006
+ break;
8007
+ }
8008
+ }
8009
+ if (!flag) {
8010
+ result.push(item);
8011
+ }
8012
+ }
8013
+ return result;
8001
8014
  }
8002
8015
  }
8003
8016
  /**