MCPcopy Create free account
hub / github.com/aws/constructs / exists

Function exists

test/construct.test.ts:371–371  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

369 node.addMetadata('Empty', '');
370
371 const exists = (key: string) => node.metadata.find(x => x.type === key);
372
373 expect(exists('Null')).toBeFalsy();
374 expect(exists('Undefined')).toBeFalsy();

Callers 1

construct.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected