@finsweet/ts-utils
Version:
Typescript utils for custom Webflow projects.
7 lines (6 loc) • 309 B
TypeScript
/**
* Removes all the options from an HTMLSelectElement.
* @param selectElement
* @param preserveEmpty If set to true, any option without a value (like a placeholder option) will be preserved.
*/
export declare const removeSelectOptions: ({ options }: HTMLSelectElement, preserveEmpty?: boolean) => void;