Is there a way to gracefully handle or intercept all function calls to an Object in JS? Basically in certain cases I want nothing to happen and I don't want JS to throw a "is not a function" exception. So not matter what function I call on the object, for example:
Obj.nonExistentFucntion1();
Obj.nonExistentFucntion2();
Obj.nonExistentFucntion3();
I want no errors to be thrown in the console.