Js if condition judgment, is this correct?

data[0].estate !== (0 || null || "")
Mar.16,2021

for not looking at your needs, others do not know, generally speaking, we write:

if (typeof data[0].estate !== 'undefined') {
    // 
}

if (!!data[0].estate) {
    //  undefined,null,0,'',false
}


// if && 
data[0].estate && doSomething()

// status
if (status) {
  // other code
}

// 
if (!!status) {
  // other code
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e5032b-4d42c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e5032b-4d42c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?