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

9 lines
195 B
JavaScript

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