Files
30-seconds-of-code/test/reverseString/reverseString.js

2 lines
88 B
JavaScript

const reverseString = str => [...str].reverse().join('');
module.exports = reverseString