Parses a query string into an object.
(xs?: string) => {
[index: string]: string | boolean;
}parse("test&count=5");
// ⇒ { test: true, count: "5" }- How to parse a query string?
Parses the given query string into an object using URLSearchParams.
(source: string) => Resultread("test&count=5");
// ⇒ { test: "", count: "5" }- How to parse a query string using URLSearchParams?
Serializes the given object into a query string.
<T>(xs?: GenericObject<T>) => stringserialize({ test: true, value: "a string with spaces", missing: false });
// ⇒ "test&value=a%20string%20with%20spaces"- How to serialize an object to a query string?