All you need to do is check the length of keys in your Object, like this, Object.keys(req.query).length === 0 Sidenote: You are implying the if-else in ...
確定! 回上一頁