@Cards-TS
    Preparing search index...

    Function combinations

    • Returns all possible combinations of the provided items

      Type Parameters

      • T

      Parameters

      • arr: T[]

        the items to use

      Returns T[][]

      combinations([1,2])
      > [[], [1], [2], [1,2]]