Rezi
    Preparing search index...

    Function findNodeIndex

    • Find the index of a node in the flattened list by key.

      Type Parameters

      • T

      Parameters

      • flatNodes: readonly Readonly<
            {
                ancestorIsLast: readonly boolean[];
                depth: number;
                hasChildren: boolean;
                key: string;
                node: T;
                parentKey: string
                | null;
                siblingCount: number;
                siblingIndex: number;
            },
        >[]

        Flattened node list

      • key: string

        Node key to find

      Returns number

      Index or -1 if not found