JS Query String dari objek
const params = {lat: 35.681236, lng: 139.767125, zoom: 15};
new URLSearchParams(params).toString();
// "lat=35.681236&lng=139.767125&zoom=15"
// OR
const queryString = Object.keys(params).map(key => {
encodeURIComponent(key) + '=' + encodeURIComponent(params[key])
}).join('&');
Jeff Le