Function formatNumber

  • Format number with thousand separator and use comma as decimal separator.

    Parameters

    • value: undefined | null | string | number
    • Optionaldecimals: number

    Returns undefined | string