IFClite TypeScript API
    Preparing search index...

    Function walkPlacementChain

    • Follow parentOf from startId until it has no parent, repeats an id, or stopAt accepts one. parentOf returns null/undefined for "no parent" (a root, an unreadable link and a non-placement all end the walk the same way; a caller that must tell them apart checks the last id itself).

      Parameters

      • startId: number
      • parentOf: (id: number) => number | null | undefined
      • Optionaloptions: PlacementChainOptions

      Returns PlacementChain