* Validates that an item is a valid select option object with only value and label properties * @param item - The item to validate * @returns true if valid, false otherwise
(item: any)
| 319 | * @returns true if valid, false otherwise |
| 320 | */ |
| 321 | function isValidSelectOptionWithOnlyValue(item: any): boolean { |
| 322 | if (typeof item !== "object" || !item) return false; |
| 323 | |
| 324 | const hasValue = isNotNullish(item.value) && typeof item.value === "string" && item.value.trim() !== ""; |
| 325 | |
| 326 | return hasValue; |
| 327 | } |
| 328 | |
| 329 | |
| 330 | /** |
no test coverage detected