(value: number, maxDecimals: number)
| 9 | export const UNICODE_ELLIPSIS = '…'; |
| 10 | |
| 11 | export function roundDecimals(value: number, maxDecimals: number) { |
| 12 | const multiplier = Math.pow(10, maxDecimals); |
| 13 | return Math.round(value * multiplier) / multiplier; |
| 14 | } |
| 15 | |
| 16 | export function slugify(text: string): string { |
| 17 | return text |
no outgoing calls
no test coverage detected