(queryString: string)
| 47 | string.replace(/([a-z0-9])([A-Z0-9])/g, '$1 $2').replace(/^./, str => str.toUpperCase()); |
| 48 | |
| 49 | export const queryStringToObject = (queryString: string) => |
| 50 | Object.fromEntries(new URLSearchParams(queryString).entries()); |
| 51 | |
| 52 | export const formatBytes = (bytes: number, decimals = 2) => { |
| 53 | if (bytes === 0) return '0 Bytes'; |
no outgoing calls
no test coverage detected
searching dependent graphs…