Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Description
I would like to enforce that variables and properties with a boolean use the prefixis
,has
,can
,did
, andwill
. For example:.visible
→.isVisible
.
I often see.visible
,.open
, etc, in code, and it's not clear whether they are booleans, contain something visible/open, or whether they contain a function that makes something visible or opens something.
Fail
constvisible=true;constrainbow=false;
Pass
constisVisible=true;consthasRainbow=false;