Sniberb
Sniberbβ€’2y ago

πŸŽƒ Spookyberb πŸŽƒ – 11-37 Nov 10

How should I name my validation functions. What is cleaner, checkIfAccountCodeExists(): Promise<boolean> or accountCodeExists(): Promise<boolean>
2 Replies
ScriptyChris
ScriptyChrisβ€’2y ago
First is IMO better or either of - isAccountCodeExisting - validateAccountCodeExistence
reactibot
reactibotβ€’2y ago
This thread hasn’t had any activity in 12 hours, so it’s now locked. Threads are closed automatically after 12 hours. If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1040228703453589555