MCPcopy Index your code
hub / github.com/nodejs/node / formatBigInt

Function formatBigInt

lib/internal/util/inspect.js:2225–2231  ·  view source on GitHub ↗
(fn, bigint, numericSeparator)

Source from the content-addressed store, hash-verified

2223}
2224
2225function formatBigInt(fn, bigint, numericSeparator) {
2226 const string = String(bigint);
2227 if (!numericSeparator) {
2228 return fn(`${string}n`, 'bigint');
2229 }
2230 return fn(`${addNumericSeparator(string)}n`, 'bigint');
2231}
2232
2233function formatPrimitive(fn, value, ctx) {
2234 if (typeof value === 'string') {

Callers 2

formatPrimitiveFunction · 0.85
formatBigIntNoColorFunction · 0.85

Calls 3

StringClass · 0.85
addNumericSeparatorFunction · 0.85
fnFunction · 0.50

Tested by

no test coverage detected