Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
doc: update code example in util.md
Now all arrays with holes only are outputted the same way.
In this example, it is `[ <101 empty items> ]` twice.
  • Loading branch information
vsemozhetbyt committed May 30, 2017
commit dd02ded91679251d37594b2c11e90d0989a7c55d
2 changes: 1 addition & 1 deletion doc/api/util.md
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ option properties directly is also supported.

```js
const util = require('util');
const arr = Array(101);
const arr = Array(101).fill(0);

console.log(arr); // logs the truncated array
util.inspect.defaultOptions.maxArrayLength = null;
Expand Down