• Returns the index of the first element in the given array with the highest value according to the comparator.

    Type Parameters

    • T

    Parameters

    Returns number