MCPcopy Create free account
hub / github.com/dailydotdev/apps / byKey

Function byKey

packages/shared/src/features/feedExplain/useFeedTuneState.ts:42–43  ·  view source on GitHub ↗
(list: TuneChange[])

Source from the content-addressed store, hash-verified

40 previewed: TuneChange[],
41): number => {
42 const byKey = (list: TuneChange[]) =>
43 new Map(latestChanges(list).map((c) => [changeKey(c), JSON.stringify(c)]));
44 const latest = byKey(changes);
45 const shown = byKey(previewed);
46 return [...new Set([...latest.keys(), ...shown.keys()])].filter(

Callers 1

countPendingFunction · 0.85

Calls 2

latestChangesFunction · 0.85
changeKeyFunction · 0.85

Tested by

no test coverage detected