kaven-basic - v6.0.0
    Preparing search index...

    Function RemoveQueryFromURL

    • Removes the query string from a given URL.

      Parameters

      • url: string

        The URL string to process.

      • keepHash: boolean = false

        Optional. If true, preserves the hash fragment (if present) in the returned URL. Defaults to false.

      Returns string

      The URL without the query string. If keepHash is true and a hash fragment exists, it is preserved.

      4.0.0

      2021-12-11