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

Method tryFindChild

src/construct.ts:131–133  ·  view source on GitHub ↗

* Return a direct child by id, or undefined * * @param id Identifier of direct child * @returns the child if found, or undefined

(id: string)

Source from the content-addressed store, hash-verified

129 * @returns the child if found, or undefined
130 */
131 public tryFindChild(id: string): IConstruct | undefined {
132 return this._children?.[sanitizeId(id)];
133 }
134
135 /**
136 * Return a direct child by id

Callers 3

findChildMethod · 0.95
defaultChildMethod · 0.95
construct.test.tsFile · 0.80

Calls 1

sanitizeIdFunction · 0.85

Tested by

no test coverage detected