Renamed 'redirect-to-url.md' to 'redirect-to-URL.md' to keep case consistent with other headings

This commit is contained in:
Marcel Michau
2017-12-14 18:01:43 +02:00
parent 6bd0e08eef
commit 2bcad76d60
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@
* [Promisify](#promisify)
* [Random integer in range](#random-integer-in-range)
* [Random number in range](#random-number-in-range)
* [Redirect to url](#redirect-to-url)
* [Redirect to URL](#redirect-to-url)
* [Reverse a string](#reverse-a-string)
* [RGB to hexadecimal](#rgb-to-hexadecimal)
* [Run promises in series](#run-promises-in-series)

View File

@ -5,6 +5,6 @@ Pass a second argument to simulate a link click (`true` - default) or an HTTP re
```js
const redirect = (url, asLink = true) =>
asLink ? window.location.href = url : window.location.replace(url);
asLink ? (window.location.href = url) : window.location.replace(url);
// redirect('https://google.com')
```