• Returns the current index of the cursor.

    Type Parameters

    • T

      The type of the value contained in the document

    Parameters

    • doc: Doc<T>

      The document

    • path: Prop[]

      The path to the string

    • cursor: string

    Returns number