MCPcopy Create free account
hub / github.com/eclipsesource/jsonforms / or

Function or

packages/core/src/testers/testers.ts:296–301  ·  view source on GitHub ↗
(...testers: Tester[])

Source from the content-addressed store, hash-verified

294 */
295export 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.

Calls 1

testerFunction · 0.50

Tested by

no test coverage detected