MCPcopy
hub / github.com/github/awesome-copilot / getSelectValues

Function getSelectValues

website/src/scripts/pages/select-utils.ts:1–4  ·  view source on GitHub ↗
(select: HTMLSelectElement | null)

Source from the content-addressed store, hash-verified

1export function getSelectValues(select: HTMLSelectElement | null): string[] {
2 if (!select) return [];
3 return Array.from(select.selectedOptions).map((option) => option.value);
4}
5
6export function setSelectValues(select: HTMLSelectElement | null, values: string[]): void {
7 if (!select) return;

Callers 4

initInstructionsPageFunction · 0.90
initWorkflowsPageFunction · 0.90
initHooksPageFunction · 0.90
initPluginsPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected