Travis build: 1043

This commit is contained in:
30secondsofcode
2018-01-05 14:56:41 +00:00
parent 94ca50bb50
commit 8ebd261e85
3 changed files with 8 additions and 5 deletions

View File

@ -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()

View File

@ -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">&nbsp;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">()

View File

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