title: How do I return false if the typeof a function is equal to undefined?
body: <p>In JavaScript, is there a way to display a message or to return false if the type of an object or function is undefined? It seems as though if an object or function is not present, there's no way to display an error message on screen, but rather the error appears in the Web Console.</p>