UNPKG

@web3r/flowerkit

Version:

A collection of more than 60 often used utility JS functions that simplify frontend development.

12 lines 509 B
/** * Gets a formatted string with thousands separators from given number * @param num{Number} - source number * @param separator{String=} - separator between every thousand * @return {string} * @example * // How to format a number with commas as thousands separators? * const str = getStrWithThousandSeparator(1000000, ","); * console.log(str); // => "1,000,000" */ export function getStrWithThousandSeparator(num: number, separator?: string | undefined): string; //# sourceMappingURL=index.d.ts.map