mazey
    Preparing search index...

    Function getAllQueryParams

    • Get the all query params of the current Web URL(location.search).

      Usage:

      import { getAllQueryParams } from "mazey";

      // http://example.com/?t1=1&t2=2&t3=3&t4=4#2333
      // ?t1=1&t2=2&t3=3&t4=4
      const ret = getAllQueryParams();
      console.log(ret);

      Output:

      { t1: "1", t2: "2", t3: "3", t4: "4" }
      

      Parameters

      • url: string = ""

        Optional, The URL string.

      Returns SingleValueUrlParams

      The query params object.