I\'ve got this code that checks for the empty or null string. It\'s working in testing.
eitherStringEmpty= (email, password) -> emailEmpty = not email? or
This is a case where "truthiness" comes in handy. You don't even need to define a function for that:
test1 = not (email and password)
Why does it work?
'0' // true '123abc' // true '' // false null // false undefined // false