spec/support/helpers/inspect.js
function inspect(stringsOrOpts, ...values) {
  if (Array.isArray(stringsOrOpts)) {
    return DEFAULT_INSPECT(stringsOrOpts, ...values);
  }
  return inspector(stringsOrOpts);
}
function inspect(stringsOrOpts, ...values) {
  if (Array.isArray(stringsOrOpts)) {
    return DEFAULT_INSPECT(stringsOrOpts, ...values);
  }
  return inspector(stringsOrOpts);
}
function inspect ( stringsOrOpts , ... values ) { if ( Array . isArray ( stringsOrOpts ) ) { return DEFAULT_INSPECT ( stringsOrOpts , ... values ) ; } return inspector ( stringsOrOpts ) ; }
helpers.inspect

A tagged template function that automatically calls `util.inspect` on
interpolated values in template string literals.

If called with an options object, `helpers.inspect` will return a tagged
template function that passes the options to `util.inspect`.

@example

const foo = 'xyz';
const bar = { a: { b: { c: 'def' } } };

// Without helpers.inspect
console.log(`foo is ${foo} and bar is ${bar}`);
// => foo is xyz and bar is [object Object]

// With helpers.inspect
console.log(
helpers.inspect`foo is ${foo} and bar is ${bar}`
);
// => foo is 'xyz' and bar is { a: { b: { c: 'def' } } }

// With options
console.log(
helpers.inspect({ depth: 0 })`foo is ${foo} and bar is ${bar}`
);
// => foo is 'xyz' and bar is { a: [Object] }

@param {string[]|Object} stringsOrOpts
@param {...*} values
@return {string}
helpers . inspect