Returns the global location object, or a default with empty values when location is not defined (e.g. Node, Web Workers).
location
Returns the global
locationobject, or a default with empty values whenlocationis not defined (e.g. Node, Web Workers).