Here's an example function that takes two arrays as arguments and returns the cartesian product of the two sets using nested loops:
index.tsx176 chars12 linesHere's an example usage of the function with two sets, setA and setB:
index.tsx225 chars7 lines
gistlibby LogSnag