• The formatNumber utility localizes a number into a string with the appropriate punctuation based on the provided locale otherwise will default to the users locale.

    Parameters

    • number: number
    • locale: string = app.data.locale

    Returns string

    Example

    formatNumber(1234);
    // 1,234

Generated using TypeDoc v0.24.8