LoginSignup
5

More than 5 years have passed since last update.

【node.js】... ○○ more itemsと溢れた配列を全て表示する

Posted at

データが大量にpushされている配列を確認するため

console.log(arr);

とすると

$ node arr.js 
: // 125個データを表示
:
{name: hoge},
... 25 more items ]

と100個までしか表示されず、溢れた分が確認できません。

解決策

const util = require('util');
console.log(util.inspect(arr, { maxArrayLength: null }));

とすると全てのデータが表示されるようになります。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5