js query string from object

50

object to query string js -

const obj = {foo: "hi there", bar: "100%" };
const params = new URLSearchParams(obj).toString();

Comments

Submit
0 Comments