forked from extern/naming-cheatsheet
Simplify shouldDisplayPagination
This commit is contained in:
@ -76,7 +76,7 @@ const shouldPaginatize = a > 10 // Made up verbs are so much fun!
|
|||||||
/* Good */
|
/* Good */
|
||||||
const postCount = 5
|
const postCount = 5
|
||||||
const hasPagination = postCount > 10
|
const hasPagination = postCount > 10
|
||||||
const shouldDisplayPagination = postCount > 10 // alternatively
|
const shouldPaginate = postCount > 10 // alternatively
|
||||||
```
|
```
|
||||||
|
|
||||||
## Avoid contractions
|
## Avoid contractions
|
||||||
|
Reference in New Issue
Block a user