❌
function isStringEmpty(str)
{
if(str === "") {
return true;
}
else {
return false;
}
}
✅
function isStringEmpty(str)
{
return (str === "");
}
@Mern_stack_01
| | Rad Dev (JS) 🖤 | @rads_notes · 2.71K subscribers function isStringEmpty(str)
{
if(str === "") {
return true;
}
else {
return false;
}
}
function isStringEmpty(str)
{
return (str === "");
}