Reverses the given string or list.
If the thing provided is a string, then it will return the string in reverse respecting all characters.
If the thing is a list, then it will reverse all items in the list.
reverse('Apple'); // "elppA"reverse([1, 2, 3]); // [3, 2, 1]reverse(new Set([1, 2, 3])); // Set[3, 2, 1] Copy
reverse('Apple'); // "elppA"reverse([1, 2, 3]); // [3, 2, 1]reverse(new Set([1, 2, 3])); // Set[3, 2, 1]
Reverses the given string or list.
If the thing provided is a string, then it will return the string in reverse respecting all characters.
If the thing is a list, then it will reverse all items in the list.