6 ms·
I often prefer enums over booleans for this. It seems more readable for most cases, and can be extended with new values. This: isRegistered: true could b
by qw 1y ago
I often prefer enums over booleans for this. It seems more readable for most cases, and can be extended with new values.
This:
isRegistered: true
could be replaced with
accountStatus: "UNREGISTRED"