Air-Quality-Web/client_src/js/Helpers/Postify.mjs

10 lines
195 B
JavaScript
Raw Permalink Normal View History

"use strict";
function Postify(obj) {
return Object.keys(obj).map(function (key) {
return [key, encodeURIComponent(obj[key])].join("=");
}).join("&");
}
export default Postify;