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

Function mapToObj3

src/common/map.ts:117–128  ·  view source on GitHub ↗
(
  map: IdMap3<MapValue>,
  valueMapper?: (mapValue: MapValue, id: Id) => ObjValue,
  excludeMapValue?: (mapValue: MapValue) => boolean,
)

Source from the content-addressed store, hash-verified

115 );
116
117export const mapToObj3 = <MapValue, ObjValue = MapValue>(
118 map: IdMap3<MapValue>,
119 valueMapper?: (mapValue: MapValue, id: Id) => ObjValue,
120 excludeMapValue?: (mapValue: MapValue) => boolean,
121) =>
122 mapToObj(
123 map,
124 (childMap) =>
125 mapToObj2<MapValue, ObjValue>(childMap, valueMapper, excludeMapValue),
126 collIsEmpty,
127 objIsEmpty,
128 );
129
130export const mapClone = <MapValue>(
131 map: IdMap<MapValue> | undefined,

Callers 3

getEncodedContentFunction · 0.90
getTablesFunction · 0.90
getTransactionLogFunction · 0.90

Calls 2

mapToObjFunction · 0.70
mapToObj2Function · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…