vendredi 27 janvier 2017

How can I refactor extract this lengthy if condition into a function?

I have this lengthy if condition which I have to use, but was looking on how to extract this into a function,

if((!validUser() && (userGroupId < userId || userId === 0)) || userBatchId === 0){
   //Code to be executed

}

Aucun commentaire:

Enregistrer un commentaire