MCPcopy Index your code
hub / github.com/awesome-opencode/awesome-opencode / stripUndefined

Function stripUndefined

scripts/export-json.js:65–73  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

63}
64
65function stripUndefined(data) {
66 const cleaned = {};
67 for (const [key, value] of Object.entries(data)) {
68 if (value !== undefined) {
69 cleaned[key] = value;
70 }
71 }
72 return cleaned;
73}
74
75async function loadEntries() {
76 const results = [];

Callers 1

loadEntriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected