MCPcopy
hub / github.com/di-sukharev/opencommit / mapDefinedEntries

Function mapDefinedEntries

out/cli.cjs:33334–33347  ·  view source on GitHub ↗
(inp, mapper)

Source from the content-addressed store, hash-verified

33332 }, []);
33333 }
33334 function mapDefinedEntries(inp, mapper) {
33335 const acc = [];
33336 for (const [k7, v5] of inp) {
33337 if (v5 === void 0) {
33338 continue;
33339 }
33340 const m5 = mapper([k7, v5]);
33341 if (m5 === void 0) {
33342 continue;
33343 }
33344 acc.push(m5);
33345 }
33346 return acc;
33347 }
33348 function queryJoin(...args) {
33349 return args.filter(Boolean).join("&");
33350 }

Callers 4

encodeMatrixFunction · 0.85
encodeLabelFunction · 0.85
formEncoderFunction · 0.85
encodeSimpleFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…