MCPcopy Create free account
hub / github.com/SKVNDR/FastDork / formatMissingItems

Function formatMissingItems

Script/FastDork.js:1049–1054  ·  view source on GitHub ↗
(items)

Source from the content-addressed store, hash-verified

1047 }
1048
1049 function formatMissingItems(items) {
1050 if (items.length === 0) return "";
1051 if (items.length === 1) return items[0];
1052 if (items.length === 2) return `${items[0]} and ${items[1]}`;
1053 return `${items.slice(0, -1).join(", ")}, and ${items[items.length - 1]}`;
1054 }
1055
1056 function updateRunStatus({ count = 0, inputsValid = false, limitExceeded = false } = {}) {
1057 if (!UI.runStatusDot || !UI.runStatusState || !UI.runStatusDetail) return;

Callers 1

updateRunStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected