MCPcopy
hub / github.com/tinyplex/tinybase / stampMapToObjWithoutHash

Function stampMapToObjWithoutHash

src/common/stamps.ts:74–77  ·  view source on GitHub ↗
(
  [map, hlc]: Stamp<IdMap<From>, boolean>,
  mapper: (mapValue: From) => To = stampClone as any,
)

Source from the content-addressed store, hash-verified

72): Stamp<IdObj<To>, true> => [mapToObj(map, mapper), hlc, hash];
73
74export const stampMapToObjWithoutHash = <From, To = From>(
75 [map, hlc]: Stamp<IdMap<From>, boolean>,
76 mapper: (mapValue: From) => To = stampClone as any,
77): Stamp<IdObj<To>> => stampNew(mapToObj(map, mapper), hlc);
78
79export const stampValidate = (
80 stamp: Stamp<any, true>,

Callers 2

getMergeableTableDiffFunction · 0.90
getMergeableRowDiffFunction · 0.90

Calls 2

mapToObjFunction · 0.90
stampNewFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…