I am trying to switch the given set of number into every possible cases. For example, the number set is [0,1,2]
The possible numbers which can be built by this set are - 012 - 021 - 102 - 120 - 210 - 201
How am I supposed to write a javascript code to compile a result like this.
Remark : No repeated numbers contain