Undefined and null is different, so we should threat them differently. If you expected a function to return null you must check for null, if you expecting a function to return undefined, then check for undefined. If you don't care, then I can agree with you that you can use loose comparasion.