changing _ to ()

This commit is contained in:
Kladdkaka
2017-12-17 11:54:53 +01:00
committed by GitHub
parent a68d34eaaf
commit e20190c534

View File

@ -3,7 +3,7 @@
Use `scrollY`, `scrollHeight` and `clientHeight` to determine if the bottom of the page is visible.
```js
const bottomVisible = _ =>
const bottomVisible = () =>
document.documentElement.clientHeight + window.scrollY >= document.documentElement.scrollHeight || document.documentElement.clientHeight;
// bottomVisible() -> true
```