Add parseOptions function

This commit is contained in:
Tobias Karlsson
2023-04-04 08:13:31 +02:00
parent 3ce67c63c5
commit 1e006a5854
11 changed files with 53 additions and 92 deletions

View File

@@ -0,0 +1,7 @@
export function parseOptions(
options?: { [s: string]: any },
): string {
return options
? new URLSearchParams(Object.entries(options)).toString()
: '';
}