MCPcopy Create free account
hub / github.com/ShaanCoding/makeread.me / process

Function process

frontend/openAPI/generated/core/request.ts:57–71  ·  view source on GitHub ↗
(key: string, value: any)

Source from the content-addressed store, hash-verified

55 };
56
57 const process = (key: string, value: any) => {
58 if (isDefined(value)) {
59 if (Array.isArray(value)) {
60 value.forEach(v => {
61 process(key, v);
62 });
63 } else if (typeof value === 'object') {
64 Object.entries(value).forEach(([k, v]) => {
65 process(`${key}[${k}]`, v);
66 });
67 } else {
68 append(key, value);
69 }
70 }
71 };
72
73 Object.entries(params).forEach(([key, value]) => {
74 process(key, value);

Callers 2

getQueryStringFunction · 0.85
getFormDataFunction · 0.85

Calls 4

isDefinedFunction · 0.85
appendFunction · 0.85
isStringFunction · 0.85
isBlobFunction · 0.85

Tested by

no test coverage detected