Skip to content

isSelectOptionKey

isSelectOptionKey(value): value is string

Checks whether a value has the shape of a select option key: a non-empty string within the length limit.

unknown

The value to test.

value is string

true when value is a string within the allowed length.

Option keys are opaque and need not follow the Alpyne key rules; a UUID is a common choice. zSelectOptionKey is the schema that defines the limit.