Speaktech.in

JQUERY Check if variable is null

JQUERY Check if variable is null


function isEmpty(value) {
  return typeof value == "string" && !value.trim() || typeof value == "undefined" || value === null;
}