Add Comma to a number or amount string (e.g. 1000000 to 1,000,000)
formatWithComma(1000000) // '1,000,000'formatWithComma('1000.34') // '1,000.34' Copy
formatWithComma(1000000) // '1,000,000'formatWithComma('1000.34') // '1,000.34'
Add Comma to a number or amount string (e.g. 1000000 to 1,000,000)