From b95b0d87c3582eee82600d076874c9d4afeb4b72 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Mon, 10 Sep 2018 08:55:00 +0200 Subject: util: add order option to `.inspect()` The order option can be used to sort the inspected values in case they do not rely on their order as arrays. That way the output is stable no matter of the object property inspection order. PR-URL: https://github.com/nodejs/node/pull/22788 Refs: https://github.com/nodejs/node/issues/22763 Reviewed-By: John-David Dalton Reviewed-By: Anna Henningsen Reviewed-By: Trivikram Kamat --- doc/api/util.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'doc/api/util.md') diff --git a/doc/api/util.md b/doc/api/util.md index 267bab85ae..b0e942274c 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -360,6 +360,9 @@ stream.write('With ES6');