Tweakr
    Preparing search index...

    Function removeQueryParam

    • Removes a query parameter from the current URL without reloading the page.

      Parameters

      • key: string

        The name of the query parameter to remove.

      Returns void

      // URL: https://example.com?page=2&sort=asc
      removeQueryParam("sort");
      // URL becomes: https://example.com?page=2

      1.1.0