default_reporter.js
function format(obj)
{
  var output;

  if (typeOf(obj) == 'object' || typeOf(obj) == 'array' || typeOf(obj) == 'null')
  {
    output = JSON.stringify(obj);
  }
  else if (typeOf(obj) != 'undefined')
  {
    output = obj.toString();
  }
  else
  {
    output = '';
  }

  return output;
}
function format(obj)
{
  var output;

  if (typeOf(obj) == 'object' || typeOf(obj) == 'array' || typeOf(obj) == 'null')
  {
    output = JSON.stringify(obj);
  }
  else if (typeOf(obj) != 'undefined')
  {
    output = obj.toString();
  }
  else
  {
    output = '';
  }

  return output;
}
function format ( obj ) { var output ; if ( typeOf ( obj ) == 'object' || typeOf ( obj ) == 'array' || typeOf ( obj ) == 'null' ) { output = JSON . stringify ( obj ) ; } else if ( typeOf ( obj ) != 'undefined' ) { output = obj . toString ( ) ; } else { output = '' ; } return output ; }
Formats provided variable into a string, ready for console

@param   {mixed} obj – object to format
@returns {string} - formatted string
Formats provided variable into a string ready for console