A proxy method which uses all console methods but
accepts a condition argument which disables it when the condition
is truthy. This is useful when you want to enable
console statements in development or testing environments but
want them disabled in production.
Parameters
condition: boolean
Boolean condition used to enable/disable console methods
A proxy method which uses all console methods but accepts a condition argument which disables it when the condition is truthy. This is useful when you want to enable console statements in development or testing environments but want them disabled in production.