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