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