le7xkq
Last Updated: June 21, 2016
·
38
· b-rucel
Moustache icon

String reverse

'string to reverse'.split('').reverse().join('');

// es6
reverse = x => [...x].reverse().join('');
reverse( 'string to reverse' );

Say Thanks
Respond