It returns the "pathname" cleaned up from the # and the initial slashes extracting it from the given hash string or, if not provided, failling back reading the location.hash
#
hash
location.hash
It returns the "pathname" cleaned up from the
#and the initial slashes extracting it from the givenhashstring or, if not provided, failling back reading thelocation.hash