diff --git a/README.md b/README.md index 7248a6bee..a55c96372 100644 --- a/README.md +++ b/README.md @@ -143,7 +143,7 @@ average(1, 2, 3); * [`arrayToHtmlList`](#arraytohtmllist) * [`bottomVisible`](#bottomvisible) -* [`copyToClipboard`](#copytoclipboard) +* [`copyToClipboard`](#copytoclipboard-) * [`currentURL`](#currenturl) * [`detectDeviceType`](#detectdevicetype) * [`elementIsVisibleInViewport`](#elementisvisibleinviewport) @@ -152,9 +152,9 @@ average(1, 2, 3); * [`hasClass`](#hasclass) * [`hide`](#hide) * [`httpsRedirect`](#httpsredirect) -* [`onUserInputChange`](#onuserinputchange) +* [`onUserInputChange`](#onuserinputchange-) * [`redirect`](#redirect) -* [`runAsync`](#runasync) +* [`runAsync`](#runasync-) * [`scrollToTop`](#scrolltotop) * [`setStyle`](#setstyle) * [`show`](#show) @@ -210,7 +210,7 @@ average(1, 2, 3); * [`clampNumber`](#clampnumber) * [`digitize`](#digitize) * [`distance`](#distance) -* [`elo`](#elo) +* [`elo`](#elo-) * [`factorial`](#factorial) * [`fibonacci`](#fibonacci) * [`gcd`](#gcd) @@ -327,7 +327,7 @@ average(1, 2, 3); * [`coalesceFactory`](#coalescefactory) * [`extendHex`](#extendhex) * [`getURLParameters`](#geturlparameters) -* [`hexToRGB`](#hextorgb) +* [`hexToRGB`](#hextorgb-) * [`prettyBytes`](#prettybytes) * [`randomHexColorCode`](#randomhexcolorcode) * [`RGBToHex`](#rgbtohex) @@ -4121,6 +4121,7 @@ Combine characters to get a string using `String.join('')`. ```js + const reverseString = str => [..str] .reverse() diff --git a/docs/index.html b/docs/index.html index 5395dd4f0..537e1f41f 100644 --- a/docs/index.html +++ b/docs/index.html @@ -873,6 +873,7 @@ console.log< const autoPluralize = pluralize(PLURALS); autoPluralize(2, 'person'); // 'people'

reverseString

Reverses a string.

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('').

+
 const reverseString = str =>
   [..str]
     .reverse()
diff --git a/snippets/reverseString.md b/snippets/reverseString.md
index 4d1a2152e..cde5dd825 100644
--- a/snippets/reverseString.md
+++ b/snippets/reverseString.md
@@ -7,6 +7,7 @@ Combine characters to get a string using `String.join('')`.
 
 ```js
 
+
 const reverseString = str =>
   [..str]
     .reverse()