def array_item_operation(array: ArrayVar, index: NumberVar | int):
    """Get an item from an array.

    Args:
        array: The array.
        index: The index of the item.

    Returns:
        The item from the array.
    """
    element_type = _determine_value_of_array_index(
        array._var_type,
        (
            index
            if isinstance(index, int)
            else (index._var_value if isinstance(index, LiteralNumberVar) else None)
        ),
    )

    return var_operation_return(
        js_expression=f"{array!s}.at({index!s})",
        var_type=element_type,
    )
Get an item from an array.

    Args:
        array: The array.
        index: The index of the item.

    Returns:
        The item from the array.
    
reflex/vars/sequence.py