(optionName: string)
| 230 | */ |
| 231 | export const hasOption = |
| 232 | (optionName: string): Tester => |
| 233 | (uischema: UISchemaElement): boolean => { |
| 234 | if (isEmpty(uischema)) { |
| 235 | return false; |
| 236 | } |
| 237 | |
| 238 | const options = uischema.options; |
| 239 | return !isEmpty(options) && !isUndefined(options[optionName]); |
| 240 | }; |
| 241 | |
| 242 | /** |
| 243 | * Only applicable for Controls. |
no outgoing calls
no test coverage detected
searching dependent graphs…