qsu
Version:
qsu is a utility library that contains useful and frequently used functions. Start with your preferred language and the modern development environment.
1 lines • 191 B
JavaScript
export function objToQueryString(e){return Object.keys(e).map((n=>{let o=e[n];return"object"==typeof o&&(o=JSON.stringify(o)),`${encodeURIComponent(n)}=${encodeURIComponent(o)}`})).join("&")}