Function remainingTokensNumber

  • Utility function returning the number of tokens that are not yet parsed (current token included).

    Useful when creating custom base parsers.

    Note: Can return a negative value if the supplied position goes beyond the tokens array length for whatever reason.

    Type Parameters

    • TToken

    Parameters

    • data: Data<TToken, unknown>

      Data.

    • i: number

      Current position.

    Returns number

Generated using TypeDoc