Travis build: 1043
This commit is contained in:
11
README.md
11
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()
|
||||
|
||||
@ -873,6 +873,7 @@ console<span class="token punctuation">.</span><span class="token function">log<
|
||||
<span class="token keyword">const</span> autoPluralize <span class="token operator">=</span> <span class="token function">pluralize</span><span class="token punctuation">(</span>PLURALS<span class="token punctuation">);</span>
|
||||
<span class="token function">autoPluralize</span><span class="token punctuation">(</span><span class="token number">2</span><span class="token punctuation">,</span> <span class="token string">'person'</span><span class="token punctuation">);</span> <span class="token comment">// 'people'</span>
|
||||
</pre><button class="primary clipboard-copy"><img src="clipboard.svg" alt="clipboard"> Copy to clipboard</button></div></div><div class="card fluid"><h3 id="reversestring" class="section double-padded">reverseString</h3><div class="section double-padded"><p>Reverses a string.</p><p>Use the spread operator (<code>...</code>) and <code>Array.reverse()</code> to reverse the order of the characters in the string. Combine characters to get a string using <code>String.join('')</code>.</p><pre class="language-js">
|
||||
|
||||
<span class="token keyword">const</span> <span class="token function-variable function">reverseString</span> <span class="token operator">=</span> str <span class="token operator">=></span>
|
||||
<span class="token punctuation">[..</span>str<span class="token punctuation">]
|
||||
.</span><span class="token function">reverse</span><span class="token punctuation">()
|
||||
|
||||
@ -7,6 +7,7 @@ Combine characters to get a string using `String.join('')`.
|
||||
|
||||
```js
|
||||
|
||||
|
||||
const reverseString = str =>
|
||||
[..str]
|
||||
.reverse()
|
||||
|
||||
Reference in New Issue
Block a user