diff --git a/README.md b/README.md
index 0e34b32b6..36609a240 100644
--- a/README.md
+++ b/README.md
@@ -92,9 +92,11 @@
* [`getScrollPosition`](#getscrollposition)
* [`getURLParameters`](#geturlparameters)
* [`hasClass`](#hasclass)
+* [`hide`](#hide)
* [`httpsRedirect`](#httpsredirect)
* [`redirect`](#redirect)
* [`scrollToTop`](#scrolltotop)
+* [`show`](#show)
* [`toggleClass`](#toggleclass)
@@ -1787,6 +1789,29 @@ hasClass(document.querySelector('p.special'), 'special'); // true
[⬆ Back to top](#table-of-contents)
+### hide
+
+Hides all the elements specified.
+
+Use the spread operator (`...`) and `Array.forEach()` to apply `display: none` to each element specified.
+
+```js
+const hide = (...el) => [...el].forEach(e => (e.style.display = 'none'));
+```
+
+Examples
+
+```js
+hide(document.querySelectorAll('img')); // Hides all elements on the page
+```
+
+
Examples
+
+```js
+show(document.querySelectorAll('img')); // Shows all elements on the page
+```
+
+
location.search as the argument to apply to the current
hasClass(document.querySelector('p.special'), 'special'); // true
+Hides all the elements specified.
+Use the spread operator (...) and Array.forEach() to apply display: none to each element specified.
const hide = (...el) => [...el].forEach(e => (e.style.display = 'none'));
+
+hide(document.querySelectorAll('img')); // Hides all <img> elements on the page
+
Redirects the page to HTTPS if its currently in HTTP. Also, pressing the back button doesn't take it back to the HTTP page as its replaced in the history.
Use location.protocol to get the protocol currently being used. If it's not HTTPS, use location.replace() to replace the existing page with the HTTPS version of the page. Use location.href to get the full address, split it with String.split() and remove the protocol part of the URL.
window.requestAnima
scrollToTop();
+Shows all the elements specified.
+Use the spread operator (...) and Array.forEach() to clear the display property for each element specified.
const show = (...el) => [...el].forEach(e => (e.style.display = ''));
+
+show(document.querySelectorAll('img')); // Shows all <img> elements on the page
+
Toggle a class for an element.
Use element.classList.toggle() to toggle the specified class for the element.