• 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.

    Example

    formatNumber(1234);
    // 1,234

    Parameters

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

    Returns string

Generated using TypeDoc v0.23.24