June 2014
Intermediate to advanced
696 pages
38h 52m
English
Often, especially when debugging, you need to convert a JavaScript object into a string representation. The util.inspect() method allows you to inspect an object and then return a string representation of the object.
The following is the syntax for the inspect() method:
util.inspect(object, [options])
The object parameter is the JavaScript object you want to convert to a string. The options method allows you to control certain aspects of the formatting process. options can contain the following properties:
showHidden: When set to true, the non-enumerable properties of the object ...
Read now
Unlock full access