MCPcopy Create free account
hub / github.com/basecamp/omarchy / parentPathFor

Function parentPathFor

shell/plugins/menu/MenuModel.js:224–228  ·  view source on GitHub ↗
(items, id)

Source from the content-addressed store, hash-verified

222}
223
224function parentPathFor(items, id) {
225 var entry = item(items, id)
226 if (!entry || !entry.parent || entry.parent === "root") return ""
227 return pathFor(items, entry.parent)
228}
229
230function isDescendantOf(items, id, ancestorId) {
231 if (ancestorId === "root") return id !== "root"

Callers

nothing calls this directly

Calls 2

itemFunction · 0.85
pathForFunction · 0.85

Tested by

no test coverage detected