* Extracts the value property from an object if it exists * @param item - The item to extract from * @returns The value property or the item itself
(item: any)
| 377 | * @returns The value property or the item itself |
| 378 | */ |
| 379 | function extractValueFromObject(item: any): any { |
| 380 | if (typeof item === 'object' && isNotNullish(item) && isNotNullish(item.value)) { |
| 381 | return item.value; |
| 382 | } |
| 383 | return item; |
| 384 | } |
| 385 | |
| 386 | /** |
| 387 | * Helper function to normalize control values - extracts values from object formats |
no test coverage detected