Published
- 1 min read
object to query string js
The solution for this is noted below
object to query string js
Solution
const obj = { foo: 'hi there', bar: '100%' }
const params = new URLSearchParams(obj).toString()
Try other methods by searching on the site. That is if this doesn’t work