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

Function sortedQuery

wxapp/txdt.js:67–77  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

65}
66
67function sortedQuery(data) {
68 const normalized = {};
69 Object.keys(data)
70 .sort()
71 .forEach((key) => {
72 if (data[key] !== undefined && data[key] !== null) normalized[key] = data[key];
73 });
74 return Object.keys(normalized)
75 .map((key) => `${key}=${normalized[key]}`)
76 .join("&");
77}
78
79function formatCoin(value) {
80 const num = Number(value || 0);

Callers 1

loginSignFunction · 0.85

Calls 1

forEachMethod · 0.80

Tested by

no test coverage detected