generate query string from urlsearchparams

JavaScript
URLSearchParams.toString()
Source

Also in JavaScript: