Don't know the keyword to search, how to reverse the number `123 (x3) => [123, 132, 231, 213, 312, 321]`?

How to convert the number like this

// Example
123 (x3) => [123, 132, 231, 213, 312, 321]

Please help me, I don’t know the keyword to search???

Now could find the keyword to search permutations!
thanks :blush: