I’m using javascript to do a verification if an input field is empty this way:
if($("#nu_username").val() == null || $("#nu_username").val() == ""){
do action...
}
It works well, but I wonder if it’s redundant to use both conditions. Do you know it?
Both
nulland""are “falsy”.You can write