(str)
| 34 | } |
| 35 | |
| 36 | function parseParams(str) { |
| 37 | if (!str) { |
| 38 | return {}; |
| 39 | } |
| 40 | const parts = str.split('&'); |
| 41 | const params = {}; |
| 42 | parts.forEach((part) => { |
| 43 | const kv = part.split('='); |
| 44 | params[kv[0]] = decodeURIComponent(kv[1]); |
| 45 | }); |
| 46 | return params; |
| 47 | } |
| 48 | |
| 49 | function assembleParams(paramsObj) { |
| 50 | const paramsArr = []; |
no outgoing calls
no test coverage detected
searching dependent graphs…