Gets all combinations of n elements from array.
n
array
getCombinations([1, 2, 3], 2);// [// [1, 2],// [1, 3],// [2, 3],// ] Copy
getCombinations([1, 2, 3], 2);// [// [1, 2],// [1, 3],// [2, 3],// ]
Gets all combinations of
nelements fromarray.