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