summaryrefslogtreecommitdiff
path: root/doc/api/util.md
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2019-02-22 23:31:42 +0100
committerRuben Bridgewater <ruben@bridgewater.de>2019-03-01 00:04:16 +0100
commit8bb30926fdc32569b76d6bf19940494205518f3d (patch)
tree89746a2fe34ce9092386412c9291542c147878f1 /doc/api/util.md
parent4db10ed9ad41764eab40df714d761389bbaf6df3 (diff)
downloadandroid-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.md6
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,