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

Function addNumericSeparatorEnd

lib/internal/util/inspect.js:2178–2187  ·  view source on GitHub ↗
(integerString)

Source from the content-addressed store, hash-verified

2176}
2177
2178function addNumericSeparatorEnd(integerString) {
2179 let result = '';
2180 let i = 0;
2181 for (; i < integerString.length - 3; i += 3) {
2182 result += `${StringPrototypeSlice(integerString, i, i + 3)}_`;
2183 }
2184 return i === 0 ?
2185 integerString :
2186 `${result}${StringPrototypeSlice(integerString, i)}`;
2187}
2188
2189const remainingText = (remaining) => `... ${remaining} more item${remaining > 1 ? 's' : ''}`;
2190

Callers 1

formatNumberFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…