dce-reactkit 3.5.2 → 3.5.3

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/cjs/index.js CHANGED
@@ -41762,7 +41762,6 @@ const extractProp = (arr, prop) => {
41762
41762
  });
41763
41763
  };
41764
41764
 
41765
- // Import shared helpers
41766
41765
  /**
41767
41766
  * Compare two arrays of objects by only comparing the values in a specific
41768
41767
  * property (e.g. compare user arrays by comparing their user.id values)
@@ -41789,8 +41788,9 @@ const compareArraysByProp = (a, b, prop) => {
41789
41788
  const matchingIndex = bCloned.findIndex((bItem) => {
41790
41789
  // Compare based on all props
41791
41790
  return props.every((propToCompareBy) => {
41792
- const aVal = extractProp(a[i], propToCompareBy);
41793
- const bVal = extractProp(bItem, propToCompareBy);
41791
+ var _a;
41792
+ const aVal = ((_a = a[i]) !== null && _a !== void 0 ? _a : {})[propToCompareBy];
41793
+ const bVal = (bItem !== null && bItem !== void 0 ? bItem : {})[propToCompareBy];
41794
41794
  return aVal === bVal;
41795
41795
  });
41796
41796
  });