(string)
| 94 | } |
| 95 | |
| 96 | export function loadQuery(string) { |
| 97 | const res = {}; |
| 98 | if (string) { |
| 99 | new URLSearchParams(string).forEach((val, key) => { |
| 100 | res[key] = val; |
| 101 | }); |
| 102 | } |
| 103 | return res; |
| 104 | } |
| 105 | |
| 106 | export function dumpQuery(dict) { |
| 107 | return `${new URLSearchParams(dict)}`; |
no outgoing calls
no test coverage detected