@theguyswithaball/scrambler
v1.0.1
Published
Receives a string and shuffles its characters randomly
Maintainers
Readme
Scrambler
Randomly scrambles (shuffles) the characters of a string.
Install
npm install @theguyswithaball/scramblerUsage
const scrambler = require('@theguyswithaball/scrambler');
scrambler('hello');
//=> 'lolhe' (random order each time)API
scrambler(str)
Returns a new string with the characters of str in random order.
Throws a TypeError if str is not a string.
License
MIT
