From 8bb30926fdc32569b76d6bf19940494205518f3d Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Fri, 22 Feb 2019 23:31:42 +0100 Subject: util: group array elements together When using `util.inspect()` with `compact` mode set to a number, all array entries exceeding 6 are going to be grouped together into logical parts. PR-URL: https://github.com/nodejs/node/pull/26269 Reviewed-By: James M Snell Reviewed-By: Anna Henningsen --- doc/api/util.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc/api/util.md') diff --git a/doc/api/util.md b/doc/api/util.md index 2826e0f1a6..ae71ad1ecf 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -468,9 +468,9 @@ changes: to be displayed on a new line. It will also add new lines to text that is longer than `breakLength`. If set to a number, the most `n` inner elements are united on a single line as long as all properties fit into - `breakLength`. Note that no text will be reduced below 16 characters, no - matter the `breakLength` size. For more information, see the example below. - **Default:** `true`. + `breakLength`. Short array elements are also grouped together. Note that no + text will be reduced below 16 characters, no matter the `breakLength` size. + For more information, see the example below. **Default:** `true`. * `sorted` {boolean|Function} If set to `true` or a function, all properties of an object, and `Set` and `Map` entries are sorted in the resulting string. If set to `true` the [default sort][] is used. If set to a function, -- cgit v1.2.3