JQUERY Check if variable is null
- By Preneesh AV --
- 04-Nov-2019 --
- 172 Comments
JQUERY Check if variable is null
function isEmpty(value) {
return typeof value == "string" && !value.trim() || typeof value == "undefined" || value === null;
}
JQUERY Check if variable is null
function isEmpty(value) {
return typeof value == "string" && !value.trim() || typeof value == "undefined" || value === null;
}