diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2019-02-22 23:31:42 +0100 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2019-03-01 00:04:16 +0100 |
commit | 8bb30926fdc32569b76d6bf19940494205518f3d (patch) | |
tree | 89746a2fe34ce9092386412c9291542c147878f1 /doc/api/util.md | |
parent | 4db10ed9ad41764eab40df714d761389bbaf6df3 (diff) | |
download | android-node-v8-8bb30926fdc32569b76d6bf19940494205518f3d.tar.gz android-node-v8-8bb30926fdc32569b76d6bf19940494205518f3d.tar.bz2 android-node-v8-8bb30926fdc32569b76d6bf19940494205518f3d.zip |
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 <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'doc/api/util.md')
-rw-r--r-- | doc/api/util.md | 6 |
1 files changed, 3 insertions, 3 deletions
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, |