(...testers: Tester[])
| 294 | */ |
| 295 | export const or = |
| 296 | (...testers: Tester[]): Tester => |
| 297 | (uischema: UISchemaElement, schema: JsonSchema, context: TesterContext) => |
| 298 | testers.reduce( |
| 299 | (acc, tester) => acc || tester(uischema, schema, context), |
| 300 | false |
| 301 | ); |
| 302 | /** |
| 303 | * Create a ranked tester that will associate a number with a given tester, if the |
| 304 | * latter returns true. |
no test coverage detected