mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
doc: clarify util.inspect usage intent
PR-URL: https://github.com/nodejs/node/pull/17375 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
1 parent
b13233aa39
commit
3b9803838c
1 file changed
+3
-2
+3
-2
@@ -348,8 +348,9 @@ changes:
|
||||
line. Defaults to 60 for legacy compatibility.
|
||||
|
||||
The `util.inspect()` method returns a string representation of `object` that is
|
||||
primarily useful for debugging. Additional `options` may be passed that alter
|
||||
certain aspects of the formatted string.
|
||||
intended for debugging. The output of `util.inspect` may change at any time
|
||||
and should not be depended upon programmatically. Additional `options` may be
|
||||
passed that alter certain aspects of the formatted string.
|
||||
`util.inspect()` will use the constructor's name and/or `@@toStringTag` to make an
|
||||
identifiable tag for an inspected value.
|
||||
|
||||
|
||||
Reference in new issue
Block a user