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

Function getCountText

website/src/scripts/pages/tools.ts:62–68  ·  view source on GitHub ↗
(resultsCount: number)

Source from the content-addressed store, hash-verified

60}
61
62function getCountText(resultsCount: number): string {
63 if (currentFilters.categories.length === 0) {
64 return `${resultsCount} tool${resultsCount === 1 ? "" : "s"}`;
65 }
66
67 return `${resultsCount} of ${allItems.length} tools (filtered by ${currentFilters.categories.length} categor${currentFilters.categories.length === 1 ? "y" : "ies"})`;
68}
69
70function applyFiltersAndRender(): void {
71 const countEl = document.getElementById("results-count");

Callers 1

applyFiltersAndRenderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected