Last Updated: June 21, 2016
·
192
· b-rucel

String reverse

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

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