getOptionArray
Import from @varavel/vdl-plugin-sdk/utils/options.
Returns a string array option from a separator-delimited value.
Empty items are removed and each entry is trimmed.
Missing values return the provided default.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
options |
Record\<string, string> | undefined |
undefined |
Plugin options record. |
key |
string |
undefined |
Option name to read. |
defaultValue |
string[] |
[] |
Value returned when the option is missing. |
separator |
string |
"," |
Delimiter used to split the raw string. |
Returns
string[]
A trimmed array of non-empty entries, an empty array for blank values, or the default when the key is missing.