• Cross joins the array's values among the given arrays, returning a Cartesian product with all possible permutations

    Example

    crossJoin([1, 2], ['a', 'b']); // [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']]
    

    Type Parameters

    • T

    • P

    Parameters

    • array1: T[]
    • array2: P[]

    Returns [T, P][]

Generated using TypeDoc