UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

12 lines (11 loc) 459 B
/** * Clean numbers for separators. * https://en.wikipedia.org/wiki/Decimal_separator */ import type { NumberFormatValue } from './types'; export declare function cleanNumber(num: NumberFormatValue | null | undefined, { decimalSeparator, thousandsSeparator, prefix, suffix, }?: { decimalSeparator?: string | null; thousandsSeparator?: string | null; prefix?: string | null; suffix?: string | null; }): NumberFormatValue | null | undefined;