-
Couldn't load subscription status.
- Fork 0
ProtoString unshuffle() Method
Seth Clydesdale edited this page Jun 1, 2015
·
1 revision
unshuffling a shuffled string.
'gitsrn'.unshuffle(); // returns 'string'
'ticaajvsrp'.unshuffle(); // returns 'javascript'Passing a number as the parameter will unshuffle the string n times.
'rgsnit'.unshuffle(3); // returns 'string'
'vipaartsjc'.unshuffle(4); // returns 'javascript'The unshuffle method reverses the results of the shuffle() method. For example, If a string has been shuffled 5 times, it should be unshuffled 5 times.
String.unshuffle(n);| Parameter | Description |
|---|---|
| n | A number that specifies the number of times a string should be unshuffled. Defaults to 1 if left undefined. |
Home • History • ProtoString • Created by Seth Clydesdale