param { T } hashObject export function setUrlHash < T > ( hashObject ) { let hash = '#' ; const hashParts = Object . keys ( hashObject ) . map ( ( key ) => `${ key }=${ hashObject [ key ] }` ) ; hash += hashParts . join ( '&' ) ; document . location . hash = hash ; }