MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / compactQueue

Function compactQueue

out/cli.cjs:27919–27933  ·  view source on GitHub ↗
(queue)

Source from the content-addressed store, hash-verified

27917 return array;
27918 }();
27919 var compactQueue = function compactQueue2(queue) {
27920 while (queue.length > 1) {
27921 var item = queue.pop();
27922 var obj = item.obj[item.prop];
27923 if (isArray2(obj)) {
27924 var compacted = [];
27925 for (var j4 = 0; j4 < obj.length; ++j4) {
27926 if (typeof obj[j4] !== "undefined") {
27927 compacted.push(obj[j4]);
27928 }
27929 }
27930 item.obj[item.prop] = compacted;
27931 }
27932 }
27933 };
27934 var arrayToObject2 = function arrayToObject3(source, options) {
27935 var obj = options && options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
27936 for (var i3 = 0; i3 < source.length; ++i3) {

Callers 1

compactFunction · 0.85

Calls 2

isArray2Function · 0.85
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…