(u: string)
| 20 | } |
| 21 | |
| 22 | export const getPathname = (u: string) => { |
| 23 | const end = u.indexOf('?') |
| 24 | |
| 25 | return u.slice(0, end === -1 ? u.length : end) |
| 26 | } |
| 27 | |
| 28 | export const getQueryParams = (url = '/'): ParsedUrlQuery => parse(url.slice(url.indexOf('?') + 1)) |
no outgoing calls
no test coverage detected