MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / committedIndex

Function committedIndex

packages/react/src/pages/policies.tsx:430–431  ·  view source on GitHub ↗
(id: string, owner: Owner)

Source from the content-addressed store, hash-verified

428 const committedForOwner = (owner: Owner) =>
429 sorted.filter((p) => p.owner === owner && p.position !== "");
430 const committedIndex = (id: string, owner: Owner): number =>
431 committedForOwner(owner).findIndex((p) => p.id === id);
432 const positionAbove = (id: string, owner: Owner): string => {
433 const committed = committedForOwner(owner);
434 const j = committedIndex(id, owner);

Callers 3

positionAboveFunction · 0.85
positionBelowFunction · 0.85
PoliciesPageFunction · 0.85

Calls 1

committedForOwnerFunction · 0.85

Tested by

no test coverage detected