DEV Community


Discussion on: Back to basics: Naming

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 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.

sadick profile image
Sadick Author

Nice catch. Let me also add that as a possibility