prettify, sorry for the big ass commit

This commit is contained in:
Olivier Gagnon
2021-09-04 19:09:30 -04:00
parent 3d7cdb4ef9
commit a18bdd6afc
554 changed files with 91615 additions and 66138 deletions
+20 -8
View File
@@ -1,13 +1,25 @@
export function getSelectValue(selector: HTMLSelectElement | null): string {
if (selector == null) { return ""; }
if (selector.options.length <= 0) { return ""; }
if (selector.selectedIndex < 0) { return ""; }
return selector.options[selector.selectedIndex].value;
if (selector == null) {
return "";
}
if (selector.options.length <= 0) {
return "";
}
if (selector.selectedIndex < 0) {
return "";
}
return selector.options[selector.selectedIndex].value;
}
export function getSelectText(selector: HTMLSelectElement | null): string {
if (selector == null) { return ""; }
if (selector.options.length <= 0) { return ""; }
if (selector.selectedIndex < 0) { return ""; }
return selector.options[selector.selectedIndex].text;
if (selector == null) {
return "";
}
if (selector.options.length <= 0) {
return "";
}
if (selector.selectedIndex < 0) {
return "";
}
return selector.options[selector.selectedIndex].text;
}