-
Couldn't load subscription status.
- Fork 0
ProtoString mirror() Method
Seth Clydesdale edited this page May 31, 2015
·
6 revisions
Mirroring text and unmirroring mirrored text.
'writing backwards is fun'.mirror(); // returns 'nuf si sdrawkcab gnitirw'
'nuf si sdrawkcab gnitirw'.mirror(); // returns 'writing backwards is fun'Mirroring a smile reveals a frown, and mirroring a frown reveals a smile.
':)'.mirror(); // returns '):'
'):'.mirror(); // returns ':)'Mirrors a text string so that it displays backwards. To unmirror a mirrored string, simply use the same method to create a readable string for non-backwards-reading-humans.
String.mirror();Home • History • ProtoString • Created by Seth Clydesdale