@@ -246,8 +246,8 @@ function configure (options) {
246246 }
247247 const tmp = stringifyFnReplacer ( String ( i ) , value , stack , replacer , spacer , indentation )
248248 res += tmp !== undefined ? tmp : 'null'
249- if ( value . length - 1 > maximumBreadth ) {
250- const removedKeys = value . length - maximumBreadth - 1
249+ if ( value . length > maximumBreadth ) {
250+ const removedKeys = value . length - maximumBreadth
251251 res += `${ join } "... ${ getItemCount ( removedKeys ) } not stringified"`
252252 }
253253 if ( spacer !== '' ) {
@@ -354,8 +354,8 @@ function configure (options) {
354354 }
355355 const tmp = stringifyArrayReplacer ( String ( i ) , value [ i ] , stack , replacer , spacer , indentation )
356356 res += tmp !== undefined ? tmp : 'null'
357- if ( value . length - 1 > maximumBreadth ) {
358- const removedKeys = value . length - maximumBreadth - 1
357+ if ( value . length > maximumBreadth ) {
358+ const removedKeys = value . length - maximumBreadth
359359 res += `${ join } "... ${ getItemCount ( removedKeys ) } not stringified"`
360360 }
361361 if ( spacer !== '' ) {
@@ -444,8 +444,8 @@ function configure (options) {
444444 }
445445 const tmp = stringifyIndent ( String ( i ) , value [ i ] , stack , spacer , indentation )
446446 res += tmp !== undefined ? tmp : 'null'
447- if ( value . length - 1 > maximumBreadth ) {
448- const removedKeys = value . length - maximumBreadth - 1
447+ if ( value . length > maximumBreadth ) {
448+ const removedKeys = value . length - maximumBreadth
449449 res += `${ join } "... ${ getItemCount ( removedKeys ) } not stringified"`
450450 }
451451 res += `\n${ originalIndentation } `
@@ -553,8 +553,8 @@ function configure (options) {
553553 }
554554 const tmp = stringifySimple ( String ( i ) , value [ i ] , stack )
555555 res += tmp !== undefined ? tmp : 'null'
556- if ( value . length - 1 > maximumBreadth ) {
557- const removedKeys = value . length - maximumBreadth - 1
556+ if ( value . length > maximumBreadth ) {
557+ const removedKeys = value . length - maximumBreadth
558558 res += `,"... ${ getItemCount ( removedKeys ) } not stringified"`
559559 }
560560 stack . pop ( )
0 commit comments