📅  最后修改于: 2022-03-11 15:02:35.380000             🧑  作者: Mango
// isEmpty return a boolean value.
// if the string is empty => true else => false
var myString = "Not Empty String";
if(isEmpty(myString)){
console.log("Empty");
}
else{
console.log("Not Empty");
}