mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-10-31 03:23:01 +00:00
10 lines
195 B
JavaScript
10 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;
|