@dxos/util 0.8.2-main.7503643 → 0.8.2-main.f081794

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.
@@ -60,28 +60,6 @@ var partition = (array, guard) => {
60
60
  []
61
61
  ]);
62
62
  };
63
- var intersectBy = (arrays, selector) => {
64
- if (arrays.length === 0) {
65
- return [];
66
- }
67
- if (arrays.length === 1) {
68
- return [
69
- ...arrays[0]
70
- ];
71
- }
72
- const [first, ...rest] = arrays;
73
- const lookups = rest.map((array) => {
74
- const map = /* @__PURE__ */ new Map();
75
- for (const item of array) {
76
- map.set(selector(item), item);
77
- }
78
- return map;
79
- });
80
- return first.filter((item) => {
81
- const key = selector(item);
82
- return lookups.every((lookup) => lookup.has(key));
83
- });
84
- };
85
63
 
86
64
  // packages/common/util/src/array-to-hex.ts
87
65
  var byteToHex = [];
@@ -2079,19 +2057,6 @@ var removeUndefinedProperties = (object) => {
2079
2057
  }
2080
2058
  return object;
2081
2059
  };
2082
-
2083
- // packages/common/util/src/clear-undefined.ts
2084
- var clearUndefined = (obj) => {
2085
- for (const key of [
2086
- ...Object.getOwnPropertyNames(obj),
2087
- ...Object.getOwnPropertySymbols(obj)
2088
- ]) {
2089
- if (obj[key] === void 0) {
2090
- delete obj[key];
2091
- }
2092
- }
2093
- return obj;
2094
- };
2095
2060
  export {
2096
2061
  BitField,
2097
2062
  Callback,
@@ -2115,7 +2080,6 @@ export {
2115
2080
  capitalize,
2116
2081
  chunkArray,
2117
2082
  clamp,
2118
- clearUndefined,
2119
2083
  compareMulti,
2120
2084
  compareObject,
2121
2085
  compareScalar,
@@ -2154,7 +2118,6 @@ export {
2154
2118
  idHue,
2155
2119
  inferObjectOrder,
2156
2120
  inferRecordOrder,
2157
- intersectBy,
2158
2121
  intersection,
2159
2122
  iosCheck,
2160
2123
  isNode,