MCPcopy Index your code
hub / github.com/monkeytypegame/monkeytype / decimals

Method decimals

frontend/src/ts/utils/format.ts:69–75  ·  view source on GitHub ↗
(
    value: number | null | undefined,
    formatOptions: FormatOptions = {},
  )

Source from the content-addressed store, hash-verified

67 }
68
69 decimals(
70 value: number | null | undefined,
71 formatOptions: FormatOptions = {},
72 ): string {
73 const options = { ...FORMAT_DEFAULT_OPTIONS, ...formatOptions };
74 return this.number(value, options);
75 }
76
77 get typingSpeedUnit(): TypingSpeedUnit {
78 return this.config.typingSpeedUnit;

Callers 1

format.spec.tsFile · 0.80

Calls 1

numberMethod · 0.95

Tested by

no test coverage detected