Setting maxArrayLength
There are a few methods all of which require setting maxArrayLength which otherwise defaults to 100.
-
Provide the override as an option to
console.dirconsole.dir(myArry, {'maxArrayLength': null}); -
Set
util.inspect.defaultOptions.maxArrayLength = null;which will impact all calls toconsole.logandutil.format -
Call
util.inspectyourself with options.const util = require('util') console.log(util.inspect(array, { maxArrayLength: null }))