@dxos/util 0.7.5-labs.a279d8c → 0.7.5-main.2567c87

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.
@@ -33,15 +33,6 @@ var distinctBy = (array, selector) => {
33
33
  return true;
34
34
  });
35
35
  };
36
- var removeBy = (array, test) => {
37
- const removed = [];
38
- for (let i = array.length - 1; i >= 0; i--) {
39
- if (test(array[i], i)) {
40
- removed.push(...array.splice(i, 1));
41
- }
42
- }
43
- return removed;
44
- };
45
36
  var partition = (array, guard) => {
46
37
  return array.reduce(([accepted, rejected], item, index, array2) => guard(item, index, array2) ? [
47
38
  [
@@ -988,7 +979,7 @@ var getDebugName = (instance) => {
988
979
  return "null";
989
980
  }
990
981
  const prototype = Object.getPrototypeOf(instance);
991
- return `${prototype.constructor?.name ?? "Object"}#${getPrototypeSpecificInstanceId(instance)}`;
982
+ return `${prototype.constructor.name}#${getPrototypeSpecificInstanceId(instance)}`;
992
983
  };
993
984
 
994
985
  // packages/common/util/src/join-tables.ts
@@ -1847,6 +1838,7 @@ var stringifyTree = (node, ancestors = [], rows = []) => {
1847
1838
  var isNotFalsy = (value) => !!value;
1848
1839
  var nonNullable = (value) => value !== null && value !== void 0;
1849
1840
  var isNotNullOrUndefined = (value) => value != null;
1841
+ var boolGuard = (value) => Boolean(value);
1850
1842
  var doAsync = async (fn) => fn();
1851
1843
  var getProviderValue = (provider, arg) => {
1852
1844
  return typeof provider === "function" ? provider(arg) : provider;
@@ -2032,6 +2024,7 @@ export {
2032
2024
  arrayToHex,
2033
2025
  arrayToString,
2034
2026
  arraysEqual,
2027
+ boolGuard,
2035
2028
  bufferToArray,
2036
2029
  byDisposition,
2037
2030
  chunkArray,
@@ -2103,7 +2096,6 @@ export {
2103
2096
  reduceGroupBy,
2104
2097
  reduceSeries,
2105
2098
  reduceSet,
2106
- removeBy,
2107
2099
  removeUndefinedProperties,
2108
2100
  safariCheck,
2109
2101
  safeAwaitAll,