You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You now have only req.query, but you would need to check it against undefined to threat it as a boolean, instead making query an object with these two methods and having has that returns a boolean directly would be better
The text was updated successfully, but these errors were encountered:
if you don't pass a value, it would be false because it's an empty string, but true if you check against undefined because it's not undefined, so, having a method that does this for you would be more coerent
What is the feature you are proposing?
You now have only
req.query
, but you would need to check it againstundefined
to threat it as aboolean
, instead makingquery
an object with these two methods and havinghas
that returns aboolean
directly would be betterThe text was updated successfully, but these errors were encountered: