treeloom
    Preparing search index...

    Function getItemById

    • Resolve an id (as captured off a DomItem's own id) back to the item it refers to, within root's own tree. Throws when the id isn't registered against this root - the same "stale reference" contract getItemByPath already has: a silent wrong-answer resolution is worse than a loud failure.

      Parameters

      • root: DomItemRoot

        The tree to resolve the id against.

      • id: number

        The id to resolve, as read directly off a DomItem's own id property.

      Returns DomItem