Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
formatString(n: DecimalArg, groupDigits?: boolean, minInt: number = 1): string {
if (!groupDigits && isInteger(n)) {
return fastFormatDecimal(String(n), this.digits, minInt);
}
return this._formatDecimal(new StringDecimalFormatter(), n, groupDigits, minInt);
}