DEV Community

Discussion on: Back to basics: Naming

Collapse
 
akshendra profile image
Akshendra Pratap Singh

I like to keep my validation functions in one module, generally named is. So, the call is something like is.email(val). However, if I have to choose a single function, I will name it isEmail. Having valid or validations with is seems a bit redundant to me.

Collapse
 
sadick profile image
Sadick • Edited

Nice catch. Let me also add that as a possibility