MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / formatNumber

Function formatNumber

packages/db/src/clickhouse/migration.ts:496–498  ·  view source on GitHub ↗
(num: number)

Source from the content-addressed store, hash-verified

494 };
495
496 const formatNumber = (num: number) => {
497 return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
498 };
499
500 if (Array.isArray(res) && res.length > 0) {
501 const { elapsed, read_rows, written_rows, memory_usage } =

Callers 1

checkFunction · 0.70

Calls 2

replaceMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected