How to check if an object has a function? (DoJo)-Collection of common programming errors
var testObj = this.getView();
How can I check with DoJo (or just native JS) if testObj has callableFunction
before I actually try to call callableFunction()
and fail if it isn’t there? I would prefer a native-DoJo solution as I need this to work on all browsers.