Looking for a way to sequentially find different arrangement possibilities of an array. I only care about adding them sequentially, doesn't need skip or shuffle values.
Example:
var array = [a, b, c, d, e, f]; Desired Output:
a ab abc abcd abcde abcdef It needs to be inside of a loop so I can do a calculation with each possible output.