MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / keyOf

Function keyOf

packages/app-core/src/store.ts:1014–1014  ·  view source on GitHub ↗
(folder: FolderEntry)

Source from the content-addressed store, hash-verified

1012
1013function mergeFoldersPreservingOrder(prev: FolderEntry[], next: FolderEntry[]): FolderEntry[] {
1014 const keyOf = (folder: FolderEntry): string => `${folder.folder}:${folder.subpath}`
1015 const nextByKey = new Map(next.map((f) => [keyOf(f), f] as const))
1016 const merged: FolderEntry[] = []
1017 const seen = new Set<string>()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected