@eagleoutice/flowr - v2.10.2
    Preparing search index...
    • Returns the cartesian product of the given arrays.

      Type Parameters

      • T

      Parameters

      • ...arrays: T[][]

      Returns T[][]

      cartesianProduct([1, 2], ['a', 'b', 'c'], [true, false])
      // -> [[1, 'a', true], [1, 'a', false], [1, 'b', true], [1, 'b', false], [1, 'c', true], [1, 'c', false], [2, 'a', true], [2, 'a', false], [2, 'b', true], [2, 'b', false], [2, 'c', true], [2, 'c', false]]