MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / convertObjectToQueryString

Method convertObjectToQueryString

fenxiang.js:115–127  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

113 async taskRequest(method, url, body = "") {
114 let re = function (e) {
115 function convertObjectToQueryString(obj) {
116 let queryString = "";
117 if (obj) {
118 const keys = Object.keys(obj).sort();
119 keys.forEach(key => {
120 const value = obj[key];
121 if (value !== null && typeof value !== 'object') {
122 queryString += `&${key}=${value}`;
123 }
124 });
125 }
126 return queryString.slice(1);
127 }
128 return convertObjectToQueryString(e)
129 }
130 function v(e) {

Callers

nothing calls this directly

Calls 1

forEachMethod · 0.80

Tested by

no test coverage detected