Is there any check if a value is not null and not empty string in Javascript? I\'m using the following one:
var data; //get its value from db if(data != nul