Adds a phony console object if none exists. All of the functions that
these polyfills add don't actually do anything. They simply prevent
errors from being propagated to the web browser.
Properties:
Name | Type | Description |
---|---|---|
log |
function | Adds console.log() if it doesn't exist. |
warn |
function | Adds console.warn() if it doesn't exist. |
error |
function | Adds console.error() if it doesn't exist. |
info |
function | Adds console.info() if it doesn't exist. |