MCPcopy
hub / github.com/openai/transformer-debugger / process

Function process

neuron_viewer/src/client/core/request.ts:66–80  ·  view source on GitHub ↗
(key: string, value: any)

Source from the content-addressed store, hash-verified

64 };
65
66 const process = (key: string, value: any) => {
67 if (isDefined(value)) {
68 if (Array.isArray(value)) {
69 value.forEach((v) => {
70 process(key, v);
71 });
72 } else if (typeof value === "object") {
73 Object.entries(value).forEach(([k, v]) => {
74 process(`${key}[${k}]`, v);
75 });
76 } else {
77 append(key, value);
78 }
79 }
80 };
81
82 Object.entries(params).forEach(([key, value]) => {
83 process(key, value);

Callers 2

getQueryStringFunction · 0.85
getFormDataFunction · 0.85

Calls 5

isDefinedFunction · 0.85
appendFunction · 0.85
isStringFunction · 0.85
isBlobFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected