Function reverse

  • Returns an array containing the values in the given iterable in reverse order. Equivalent to array.reverse, except that it does not mutate the given iterable.

    Type Parameters

    • T

    Parameters

    • iterable: Iterable<T>

    Returns T[]