How do I check if a Variable (whether, number, string, date, Object, etc)
is null, blank, undefined or empty?
The following fails for any Date, with lodash isEmpty always returning NotEmpty for dates.
if (test == null || test == '' || _.isEmpty(test){
console.log('variable is empty');
}
Anyway to do this is in a clean manner? Reading the links below,