Timestamp Microservice - empty date parameter not passing

In this post the condition if (req.params.date === '' || req.params.date === undefined) apparently worked. Why is that?