Write a function called permutations that takes in a string as a parameter and returns an array of all possible permutations of the characters in the string.
Invertible transformations on permutation representations, including an RNG-free in-place Fisher-Yates-Knuth shuffle https://www.npmjs.com/package/factoradic ...