API Reference

Returns a string of an object's key and value pairs as a query parameter string. Supports one level of nesting.

function objectToQueryParams(obj: object): string

// Example:

objectToQueryParams({ age: 30, city: "Atlanta" }) //=> "age=38&city=Atlanta"