function parseURL ( url ) { const urlParams = new URLSearchParams ( url ) ; let results = { } ; for ( const entry of urlParams . entries ( ) ) { results [ entry [ 0 ] ] = entry [ 1 ] ; } return results ; } export { parseURL } ;