( obj: Record<string, string>, )
| 1 | export function sortObject( |
| 2 | obj: Record<string, string>, |
| 3 | ): Record<string, string> { |
| 4 | return Object.keys(obj) |
| 5 | .sort() |
| 6 | .reduce<Record<string, string>>((acc, key) => { |
| 7 | acc[key] = obj[key] |
| 8 | return acc |
| 9 | }, {}) |
| 10 | } |
| 11 | |
| 12 | export function jsSafeName(name: string) { |
| 13 | return name |
no outgoing calls
no test coverage detected