mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-20 16:22:56 +02:00
12 lines
319 B
TypeScript
12 lines
319 B
TypeScript
import { createElement } from "./createElement";
|
|
|
|
export function createOptionElement(text: string, value: string="") {
|
|
const sanitizedValue: string = value;
|
|
if (sanitizedValue === "") { sanitizedValue = text; }
|
|
|
|
return createElement("option", {
|
|
text: text,
|
|
value: sanitizedValue,
|
|
});
|
|
}
|