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

Function scopeEndIs

packages/core/src/testers/testers.ts:267–275  ·  view source on GitHub ↗
(expected: string)

Source from the content-addressed store, hash-verified

265 */
266export const scopeEndIs =
267 (expected: string): Tester =>
268 (uischema: UISchemaElement): boolean => {
269 if (isEmpty(expected) || !isControl(uischema)) {
270 return false;
271 }
272 const schemaPath = uischema.scope;
273
274 return !isEmpty(schemaPath) && last(schemaPath.split('/')) === expected;
275 };
276
277/**
278 * A tester that allow composing other testers by && them.

Callers 1

testers.test.tsFile · 0.90

Calls 1

isControlFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…