MCPcopy Create free account
hub / github.com/ProNextJS/declarative-routing / getAllParamsAsArrays

Function getAllParamsAsArrays

assets/shared/utils.ts:91–104  ·  view source on GitHub ↗
(
  searchParams: URLSearchParams
)

Source from the content-addressed store, hash-verified

89}
90
91function getAllParamsAsArrays(
92 searchParams: URLSearchParams
93): Record<string, string[]> {
94 const params: Record<string, string[]> = {};
95
96 searchParams.forEach((value, key) => {
97 if (!params[key]) {
98 params[key] = [];
99 }
100 params[key].push(value);
101 });
102
103 return params;
104}
105
106function convertToRequiredType(
107 values: string[],

Callers 1

safeParseSearchParamsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected