składnia języka javascript w celu sprawdzenia null, nieokreślony lub pustego
if (typeof value !== 'undefined' && value) {
//deal with value'
};
javascript sprawdzić, czy wiersz jest pusty
var string = "not empty";
if(string == ""){
console.log("Please Add");
}
else{
console.log("You can pass"); // console will log this msg because our string is not empty
}