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