Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aws/constructs
/ exists
Function
exists
test/construct.test.ts:326–326 ·
view source on GitHub ↗
(key: string)
Source
from the content-addressed store, hash-verified
324
node.addMetadata(
'Empty'
,
''
);
325
326
const
exists = (key: string) => node.metadata.find(x => x.
type
=== key);
327
328
expect(exists(
'Null'
)).toBeFalsy();
329
expect(exists(
'Undefined'
)).toBeFalsy();
Callers
1
construct.test.ts
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected