Update reversString.md

This commit is contained in:
Rohit Tanwar
2018-01-06 13:22:31 +05:30
committed by GitHub
parent 389bc263d4
commit e0534e8b15

View File

@ -11,7 +11,7 @@ Combine characters to get a string using `String.join('')`.
const reverseString = str =>
[..str]
[...str]
.reverse()
.join('');
```