• Returns the global location object if it is present otherwise null. This helper is used to access the location object without causing an exception "Uncaught ReferenceError: location is not defined"

    Parameters

    • OptionalcheckForMock: boolean

    Returns Location | null