Skip to content
0

katanakit-js / useGetUrlParams

Function: useGetUrlParams() ​

ts
function useGetUrlParams(urlString): Record<string, string>;

Defined in: src/core/services/utils.service.ts:560

Parses query parameters from a URL string into a plain object.

Parameters ​

ParameterType
urlStringstring

Returns ​

Record<string, string>

Example ​

ts
useGetUrlParams("https://example.com?q=hello&page=1");

Released under the MIT License.