• Returns an array of tuples representing the Cartesian product of two arrays. Each tuple contains an element from the first array and an element from the second array.

    Type Parameters

    • T

      The type of elements in the first array.

    • U

      The type of elements in the second array.

    Parameters

    • a: T[]

      The first array.

    • b: U[]

      The second array.

    Returns [T, U][]

    An array of tuples representing the Cartesian product of the two arrays.

Generated using TypeDoc