changing _ to ()
This commit is contained in:
@ -3,7 +3,7 @@
|
|||||||
Use `scrollY`, `scrollHeight` and `clientHeight` to determine if the bottom of the page is visible.
|
Use `scrollY`, `scrollHeight` and `clientHeight` to determine if the bottom of the page is visible.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const bottomVisible = _ =>
|
const bottomVisible = () =>
|
||||||
document.documentElement.clientHeight + window.scrollY >= document.documentElement.scrollHeight || document.documentElement.clientHeight;
|
document.documentElement.clientHeight + window.scrollY >= document.documentElement.scrollHeight || document.documentElement.clientHeight;
|
||||||
// bottomVisible() -> true
|
// bottomVisible() -> true
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user