README
Faro
Perform faro out-shuffle for a string or an array. More information about faro: https://en.wikipedia.org/wiki/Faro_shuffle
Installation
npm i -S faro
Usage:
const faro = ; const shuffle unshuffle = faro; console; // Shows fboaorconsole; // Shows foobar
Unshuffle undoes what shuffle does. The other way around would work too.
You can do the same, but for arrays:
const faro = ; const shuffleArray unshuffleArray = faro; console;console;
The following functions are available:
shuffleshuffleArrayunshuffleunshuffleArrayweaveweaveArrayunweaveunweaveArray
weave
and shuffle
are aliases, as are unweave
and unshuffle
.