Returns an array of all the subsets of an array.

  • Parameters

    • arr: number[]

      The array

    Returns number[][]