MCPcopy Index your code
hub / github.com/github/awesome-copilot / getCountText

Function getCountText

website/src/scripts/pages/extensions.ts:261–267  ·  view source on GitHub ↗
(resultsCount: number)

Source from the content-addressed store, hash-verified

259}
260
261function getCountText(resultsCount: number): string {
262 if (currentFilters.keywords.length === 0) {
263 return `${resultsCount} extension${resultsCount === 1 ? "" : "s"}`;
264 }
265
266 return `${resultsCount} of ${allItems.length} extensions (filtered by ${currentFilters.keywords.length} keyword${currentFilters.keywords.length === 1 ? "" : "s"})`;
267}
268
269function applySortAndRender(): void {
270 const countEl = document.getElementById("results-count");

Callers 1

applySortAndRenderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected