Returns true if the bottom of the page is visible, false otherwise.
Use scrollY, scrollHeight and clientHeight to determine if the bottom of the page is visible.
const bottomVisible = () =>
document.documentElement.clientHeight + window.scrollY >=
diff --git a/snippets/arrayToHtmlList.md b/snippets/arrayToHtmlList.md
index 6a55e19e0..19100cfc0 100644
--- a/snippets/arrayToHtmlList.md
+++ b/snippets/arrayToHtmlList.md
@@ -5,9 +5,11 @@ Converts the given array elements into `
` tags and appends them to the list
Use `Array.map()`, `document.querySelector()`, and an anonymous inner closure to create a list of html tags.
```js
- const arrayToHtmlList = (arr, listID) =>
- (el => (el = document.querySelector('#' + listID),
- el.innerHTML += arr.map(item => `${item}`).join('')))()
+const arrayToHtmlList = (arr, listID) =>
+ (el => (
+ (el = document.querySelector('#' + listID)),
+ (el.innerHTML += arr.map(item => `
${item}`).join(''))
+ ))();
```
```js