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

Function hasOption

packages/core/src/testers/testers.ts:232–240  ·  view source on GitHub ↗
(optionName: string)

Source from the content-addressed store, hash-verified

230 */
231export 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.

Callers 2

testers.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…