8 lines
167 B
TypeScript
8 lines
167 B
TypeScript
export function parseOptions(
|
|
options?: Record<string, any>,
|
|
): string {
|
|
return options
|
|
? new URLSearchParams(Object.entries(options)).toString()
|
|
: '';
|
|
}
|