JS determines whether the variable is null or whether it is null

  • 2020-03-30 03:35:44
  • OfStack

 
function isNull(data){ 
return (data == "" || data == undefined || data == null) ? " no " : data; 
}

Related articles: