lib/internal/inspect_repl.js
function leftPad(n, prefix, maxN) {
  const s = n.toString();
  const nchars = Math.max(2, String(maxN).length) + 1;
  const nspaces = nchars - s.length - 1;

  return prefix + ' '.repeat(nspaces) + s;
}
function leftPad(n, prefix, maxN) {
  const s = n.toString();
  const nchars = Math.max(2, String(maxN).length) + 1;
  const nspaces = nchars - s.length - 1;

  return prefix + ' '.repeat(nspaces) + s;
}
function leftPad ( n , prefix , maxN ) { const s = n . toString ( ) ; const nchars = Math . max ( 2 , String ( maxN ) . length ) + 1 ; const nspaces = nchars - s . length - 1 ; return prefix + ' ' . repeat ( nspaces ) + s ; }
Adds spaces and prefix to number maxN is a maximum number we should have space for
Adds spaces and prefix to number maxN is a maximum number we should have space for