util
ModuleThe JS-facing surface of Node's util module, reachable as require('util').
Properties
This module has no properties.
Methods
util.inspect(value) -> string
Returns a string representation of a value, intended for debugging.
Objects, arrays, `Map`/`Set`, functions, dates, and errors are formatted the way
Node/browser consoles render them; a top-level string is returned as-is.
Declaration
util.inspect(value) -> string
Parameters
| Name | Type | Description |
|---|---|---|
| value | JSValue | The value to format. |
Returns
string
A formatted string.