(obj: T)
| 1754 | } |
| 1755 | |
| 1756 | export function sortObjectKeys<T extends Record<string, any>>(obj: T): T { |
| 1757 | const sorted: Record<string, any> = {} |
| 1758 | for (const key of Object.keys(obj).sort()) { |
| 1759 | sorted[key] = obj[key] |
| 1760 | } |
| 1761 | return sorted as T |
| 1762 | } |
| 1763 | |
| 1764 | export function displayTime(time: number): string { |
| 1765 | // display: {X}ms |
no outgoing calls
no test coverage detected