src/utils/logger.js
function getDefaultConsole() {
  if (console && typeof console.log === 'function') {
    return console.log;
  } else {
    return function() {
      // Console isn't available until dev tools is open in old IE, so keep checking
      if (console && typeof console.log === 'function') {
        console.log.apply(console, arguments);
      }
    };
  }
}
function getDefaultConsole() {
  if (console && typeof console.log === 'function') {
    return console.log;
  } else {
    return function() {
      // Console isn't available until dev tools is open in old IE, so keep checking
      if (console && typeof console.log === 'function') {
        console.log.apply(console, arguments);
      }
    };
  }
}
function getDefaultConsole ( ) { if ( console && typeof console . log === 'function' ) { return console . log ; } else { return function ( ) { // Console isn't available until dev tools is open in old IE, so keep checking if ( console && typeof console . log === 'function' ) { console . log . apply ( console , arguments ) ; } } ; } }
Gets a bound console method, falls back to log for unavailable functions
@param  {String}   name Name of the method to get
@return {Function}      Bound console function
 /* eslint-disable no-console
Gets a bound console method falls back to log for unavailable functions