MCPcopy Create free account
hub / github.com/nodejs/node / [kInspect]

Method [kInspect]

lib/internal/histogram.js:65–83  ·  view source on GitHub ↗
(depth, options)

Source from the content-addressed store, hash-verified

63 }
64
65 [kInspect](depth, options) {
66 if (depth < 0)
67 return this;
68
69 const opts = {
70 ...options,
71 depth: options.depth == null ? null : options.depth - 1,
72 };
73
74 return `Histogram ${inspect({
75 min: this.min,
76 max: this.max,
77 mean: this.mean,
78 exceeds: this.exceeds,
79 stddev: this.stddev,
80 count: this.count,
81 percentiles: this.percentiles,
82 }, opts)}`;
83 }
84
85 /**
86 * @readonly

Callers

nothing calls this directly

Calls 1

inspectFunction · 0.70

Tested by

no test coverage detected