1
I’m creating an app where I have a question. In this application there may be at some point a variable where its value should be an empty string ("") but, as I am obliged to work with another team where I do not have full knowledge of the project, depending on the situation the return can be null.
Today, with all the knowledge I have achieved, I can only think of using a multiple condition if it occurs, as in the code below
var teste;
if(teste === null || teste.length == 0){
return true;
}
Is there any way I can validate this teste === null
in a more "beautiful way"?
NOTE: pretty I say more readable.
excellent! thank you very much!
– LeandroLuk