code: 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;
  }
docs: Formats provided variable into a string, ready for console
  
  @param   {mixed} obj – object to format
  @returns {string} - formatted string