https://github.com/cybertoothca/console-noops
A simple Javascript library that will prevent legacy browsers from throwing errors when they don't support basic console functions. e.g. `console.debug(...)`
https://github.com/cybertoothca/console-noops
Last synced: 10 months ago
JSON representation
A simple Javascript library that will prevent legacy browsers from throwing errors when they don't support basic console functions. e.g. `console.debug(...)`
- Host: GitHub
- URL: https://github.com/cybertoothca/console-noops
- Owner: cybertoothca
- License: mit
- Created: 2016-06-17T16:41:24.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-17T17:15:14.000Z (almost 10 years ago)
- Last Synced: 2025-02-22T02:09:10.679Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# console-noops
A simple Javascript library that will prevent legacy browsers from throwing
errors when they don't support basic console functions.
Here is a list of the console functions that are muted in those legacy browsers:
console.assert(...);
console.clear(...);
console.count(...);
console.debug(...)
console.dir(...);
console.dirxml(...);
console.error(...);
console.exception(...);
console.group(...);
console.groupCollapsed(...);
console.groupEnd(...);
console.info(...);
console.log(...);
console.markTimeline(...);
console.profile(...);
console.profileEnd(...);
console.table(...);
console.time(...);
console.timeEnd(...);
console.timeStamp(...);
console.trace(...);
console.warn(...);
## Thank You
[This solution was proposed over here in stackoverflow](http://stackoverflow.com/a/16916941/545137)