JS: address review comments

This commit is contained in:
Esben Sparre Andreasen
2018-08-22 13:54:07 +02:00
parent fef257b1ec
commit 218c0cb51a
2 changed files with 6 additions and 5 deletions

View File

@@ -54,7 +54,8 @@ express().get('/some/path/:foo', function(req, res) {
express().get('/some/path/:foo', function(req, res) {
if (req.query.path.length) {} // OK
req.query.path.length == 0; // OK
!req.query.path.length == 0; // OK
!req.query.path.length; // OK
req.query.path.length > 0; // OK
});
express().get('/some/path/:foo', function(req, res) {