MCPcopy Index your code
hub / github.com/tinyplex/tinybase / mapToObj2

Function mapToObj2

src/common/map.ts:105–115  ·  view source on GitHub ↗
(
  map: IdMap2<MapValue> | undefined,
  valueMapper?: (mapValue: MapValue, id: Id) => ObjValue,
  excludeMapValue?: (mapValue: MapValue) => boolean,
)

Source from the content-addressed store, hash-verified

103};
104
105export const mapToObj2 = <MapValue, ObjValue = MapValue>(
106 map: IdMap2<MapValue> | undefined,
107 valueMapper?: (mapValue: MapValue, id: Id) => ObjValue,
108 excludeMapValue?: (mapValue: MapValue) => boolean,
109) =>
110 mapToObj(
111 map,
112 (childMap) => mapToObj(childMap, valueMapper, excludeMapValue),
113 collIsEmpty,
114 objIsEmpty,
115 );
116
117export const mapToObj3 = <MapValue, ObjValue = MapValue>(
118 map: IdMap3<MapValue>,

Callers 3

getTableFunction · 0.90
getTransactionLogFunction · 0.90
mapToObj3Function · 0.70

Calls 1

mapToObjFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…