0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib/internal/util
Ruben Bridgewater 489e77c119
util: add (typed) array length to the default output
Align the inspect output with the one used in the Chrome dev tools.
A recent survey outlined that most users prefer to see the number
of set and map entries. This should count as well for array sizes.
The size is only added to regular arrays in case the constructor is
not the default constructor.
Typed arrays always indicate their size.

PR-URL: https://github.com/nodejs/node/pull/31027
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
2019-12-25 11:19:43 +01:00
..
comparisons.js lib: update Symbol.toStringTag by SymbolToStringTag primordial 2019-12-13 15:15:21 -05:00
debuglog.js util: add colors to debuglog() 2019-12-25 11:09:16 +01:00
inspect.js util: add (typed) array length to the default output 2019-12-25 11:19:43 +01:00
inspector.js lib: flatten access to primordials 2019-11-25 10:28:15 +01:00
types.js lib: flatten access to primordials 2019-11-25 10:28:15 +01:00