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

Function getChoicesValues

website/src/scripts/choices.ts:10–13  ·  view source on GitHub ↗
(choices: Choices)

Source from the content-addressed store, hash-verified

8 * Get selected values from a Choices instance
9 */
10export function getChoicesValues(choices: Choices): string[] {
11 const val = choices.getValue(true);
12 return Array.isArray(val) ? val : (val ? [val] : []);
13}
14
15/**
16 * Restore selected values on a Choices instance.

Callers 2

initExtensionsPageFunction · 0.90
setupFiltersFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected