inspect.js
function inspect(obj, opts) {
  // default options
  var ctx = {
    seen: [],
    stylize: stylizeNoColor
  };
  // legacy...
  if (arguments[2] !== undefined) ctx.depth = arguments[2];
  if (arguments[3] !== undefined) ctx.colors = arguments[3];
  if (typeof opts === 'boolean') {
    // legacy...
    ctx.showHidden = opts;
  }
  // Set default and user-specified options
  ctx = Object.assign({}, inspect.defaultOptions, ctx, opts);
  if (ctx.colors) ctx.stylize = stylizeWithColor;
  if (ctx.maxArrayLength === null) ctx.maxArrayLength = Infinity;
  return formatValue(ctx, obj, ctx.depth);
}
function inspect(obj, opts) {
  // default options
  var ctx = {
    seen: [],
    stylize: stylizeNoColor
  };
  // legacy...
  if (arguments[2] !== undefined) ctx.depth = arguments[2];
  if (arguments[3] !== undefined) ctx.colors = arguments[3];
  if (typeof opts === 'boolean') {
    // legacy...
    ctx.showHidden = opts;
  }
  // Set default and user-specified options
  ctx = Object.assign({}, inspect.defaultOptions, ctx, opts);
  if (ctx.colors) ctx.stylize = stylizeWithColor;
  if (ctx.maxArrayLength === null) ctx.maxArrayLength = Infinity;
  return formatValue(ctx, obj, ctx.depth);
}
function inspect ( obj , opts ) { // default options var ctx = { seen : [ ] , stylize : stylizeNoColor } ; // legacy... if ( arguments [ 2 ] !== undefined ) ctx . depth = arguments [ 2 ] ; if ( arguments [ 3 ] !== undefined ) ctx . colors = arguments [ 3 ] ; if ( typeof opts === 'boolean' ) { // legacy... ctx . showHidden = opts ; } // Set default and user-specified options ctx = Object . assign ( { } , inspect . defaultOptions , ctx , opts ) ; if ( ctx . colors ) ctx . stylize = stylizeWithColor ; if ( ctx . maxArrayLength === null ) ctx . maxArrayLength = Infinity ; return formatValue ( ctx , obj , ctx . depth ) ; }
Echos the value of a value. Tries to print the value out
in the best way possible given the different types.

@param {Object} obj The object to print out.
@param {Object} opts Optional options object that alters the output.
 /* legacy: obj, showHidden, depth, colors
Echos the value of a value . Tries to print the value out in the best way possible given the different types .