SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...

    Function tokenIndexAtCaret

    • Index of the token whose span contains caret (offsets start after the leading prefix — base; see formulaPrefixLen). At a boundary the LEFT token wins — the one just typed into — so the caret adopts the color of the character behind it. -1 when the caret is in the prefix or past the end.

      Parameters

      • tokens: readonly FormulaToken[]
      • caret: number
      • base: number

      Returns number