let url = "http://test.com/"; const c = encodeURIComponent; const cv = v => v && v.toISOString ? v.toISOString() : v; url += "?" + Object.keys(data).map(k => `${c(k)}=${c(cv(data[k]))}`).join("&");
208100cookie-checkJavascript create querystring ES6 version