In PHP and other languages there are ways to suppress error/warning messages.
Is there a way in javascript or jquery to prevent errors and warnings from being writte
A dirty way to hide all Javascript console warnings is by overriding the console object's warn method:
warn
console.warn = () => {};
Obviously, it also works with other console methods