Archive, multitagging, cleanup
Cleaned up the current snippets for consistency and minor problems, added multiple tags to most of them, archived a few.
This commit is contained in:
@ -2,13 +2,12 @@
|
||||
|
||||
Reverses a string.
|
||||
|
||||
Use `split('')` and `Array.reverse()` to reverse the order of the characters in the string.
|
||||
Combine characters to get a string using `join('')`.
|
||||
Use the spread operator (`...`) and `Array.reverse()` to reverse the order of the characters in the string.
|
||||
Combine characters to get a string using `String.join('')`.
|
||||
|
||||
```js
|
||||
const reverseString = str =>
|
||||
str
|
||||
.split('')
|
||||
[..str]
|
||||
.reverse()
|
||||
.join('');
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user