• Pair every value with every other value in the array.

    Type Parameters

    • T

      The generic type of the values in the array.

    Parameters

    • values: T[]

      The array to pair.

    Returns [T, T][]

    Every possible pair of values in the array.