MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp / numToCommas

Function numToCommas

client/src/components/Donation/utils.ts:1–1  ·  view source on GitHub ↗
(num: number)

Source from the content-addressed store, hash-verified

1const numToCommas = (num: number) => Intl.NumberFormat('en-US').format(num);
2const EDUCATION_HOURS_PER_DOLLAR = 50;
3export const CENTS_IN_DOLLAR = 100;
4export const convertToTimeContributed = (amount: number) =>

Callers 2

convertToTimeContributedFunction · 0.85
formattedAmountLabelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected