text: /**
   * `location` is a plain object which represents the current location in browser similar to document.location.
   * see https://github.com/rackt/history/blob/master/docs/Location.md
   *
   * @method isLocationValid
   * @param location
   * @returns {boolean}
   */
  export default function isLocationValid(location) {
      return (
          !!location &&
          typeof location === "object" &&
          location.hasOwnProperty("pathname") &&
          location.hasOwnProperty("hash") &&
          location.hasOwnProperty("search") &&
          location.hasOwnProperty("state")
      );
  }
  