MCPcopy Create free account
hub / github.com/chart-kit/react-native-chart-kit-example / formatNumber

Function formatNumber

benchmarks/chart-scrub.spec.ts:10–11  ·  view source on GitHub ↗
(value: number, digits = 2)

Source from the content-addressed store, hash-verified

8};
9
10const formatNumber = (value: number, digits = 2) =>
11 Number.isFinite(value) ? value.toFixed(digits) : "n/a";
12
13test("line chart scrub frame timing", async ({ page }) => {
14 await page.goto("/?story=v2-scrub&visual=1");

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected