mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-21 19:24:28 +08:00
11 lines
255 B
TypeScript
11 lines
255 B
TypeScript
const createQueryParams = (params: {
|
|
[x: string]: string | number | undefined;
|
|
}): string =>
|
|
Object.keys(params)
|
|
.map(
|
|
(k) => `${encodeURIComponent(k)}=${encodeURIComponent(String(params[k]))}`,
|
|
)
|
|
.join('&');
|
|
|
|
export default createQueryParams;
|