Formats a number to include commas (or any separator) in the thousandths place.
function numberFormat(num: number, separator: string = THOUSANDTHS_SEPARATOR): string
num:number
Number to format.
separator:string
Character that separates thousandths.
The formatted number.
import { numberFormat } from 'utils/numbers';
console.log(numberFormat(1234)); // Outputs: 1,234
console.log(numberFormat(1234, '.')); // Outputs: 1.234