export function convertQueryStringToObj ( queryString ) { const keyValuesPairs = queryString . split ( '&' ) ; return keyValuesPairs . reduce ( ( obj , keyValuePair ) => { const [ key , value ] = keyValuePair . split ( '=' ) ; return { ... obj , [ key ] : value } ; } , { } ) ; }