index.js
function logArr(arr) {

  if(arguments.length > 1) {
    if(!suppressWarnings) console.warn("'logArr' only supports 1 parameter. Converting to regular 'log'.");
    log(Array.prototype.slice.call(arguments));
    return;
  }

  if(! _.isArray(arr)) {
    if(!suppressWarnings) console.warn("'logArr' used, but first argument was not an array. Converting to regular 'log'.");
    log(arr);
    return;
  }
  log.apply(null, arr)
}
function logArr(arr) {

  if(arguments.length > 1) {
    if(!suppressWarnings) console.warn("'logArr' only supports 1 parameter. Converting to regular 'log'.");
    log(Array.prototype.slice.call(arguments));
    return;
  }

  if(! _.isArray(arr)) {
    if(!suppressWarnings) console.warn("'logArr' used, but first argument was not an array. Converting to regular 'log'.");
    log(arr);
    return;
  }
  log.apply(null, arr)
}
function logArr ( arr ) { if ( arguments . length > 1 ) { if ( ! suppressWarnings ) console . warn ( "'logArr' only supports 1 parameter. Converting to regular 'log'." ) ; log ( Array . prototype . slice . call ( arguments ) ) ; return ; } if ( ! _ . isArray ( arr ) ) { if ( ! suppressWarnings ) console . warn ( "'logArr' used, but first argument was not an array. Converting to regular 'log'." ) ; log ( arr ) ; return ; } log . apply ( null , arr ) }
coloured console log, using an array instead of parameters
coloured console log using an array instead of parameters