mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 17:43:48 +01:00
10 lines
341 B
TypeScript
10 lines
341 B
TypeScript
|
export function getSelectValue(selector: HTMLSelectElement | null): string {
|
||
|
if (selector == null) { return ""; }
|
||
|
return selector[selector.selectedIndex].value;
|
||
|
}
|
||
|
|
||
|
export function getSelectText(selector: HTMLSelectElement | null): string {
|
||
|
if (selector == null) { return ""; }
|
||
|
return selector[selector.selectedIndex].text;
|
||
|
}
|